Recently, I helped a professor organize some documents. The original text was edited using
word. Considering that I might not be the only one involved, I decided to convert it into an online cloud document to facilitate multiple people in selecting specific sections, providing feedback, and adding comments. I choseFeishu Cloud Docs, which is largely sufficient for this task, but there are still some issues, which will be discussed below. Ultimately,markdownwas used for version control.
Can Documentation Be Version-Controlled with Git Like Code
The versioning in
飞书云文档is traceable, with a corresponding copy for every single change. This means you can freely revert to any version in the change history. It is somewhat similar toredisrdborwindows 系统镜像. It serves as a way to achieve完整回退(complete rollback).
However, currently
飞书云文档 does not support change descriptions. In other words, it only provides version comparison and change details, but does not allow you to provide explanations for these changes. For example, if I am currently editing and correcting the content of Chapter 1, making extensive changes and then saving, I would want to annotate the intent, purpose, and content of this change as: 第一章内容整理及校订 (Chapter 1 Content Organization and Correction). If this feature existed, when there are many historical changes—for instance, if a book has been revised one hundred times and each revision has an associated change description—it would be very convenient to trace back to a specific target version. In this case, change descriptions act like signposts along the timeline of changes. Personally, I believe this feature is quite important. If implemented, it would significantly enhance document management capabilities, especially for work involving documents with multiple version changes. It is currently not implemented, and the reason is unknown. Observing that Feishu document data storage is likely rich text, it is certainly not a proprietary file format and encoding similar to word, which is different from general text files and is more like a binary installation package file. If Feishu document data were binary, generating change content would require comparison, making the comparison problem complex. If it is rich text, it is quite easy to implement, provided one considers default style issues and parses various file formats into formats allowed by 飞书云文档 functionality.
Unlike files such as word, epub, or pdf, markdown is better suited for text editing, especially when focusing solely on content. Managing content in markdown format is highly appropriate. Most code repositories use markdown for repository descriptions, usage instructions, and similar information. Many articles are also created using markdown to focus on content rather than formatting, as is the case with this document.
Currently, the consideration is to manage document content using markdown, manage document formatting using 飞书云文档, and use 飞书 for communication between documents and 消息交流 (message exchange). This approach has many benefits, which are explained below:
- Focus only on changes to document content, ignoring formatting issues such as punctuation, typos, and grammatical errors, which can be effectively resolved using
gitrepositories andmarkdown. - The same document may have different table of contents structures depending on the target audience or reader preferences, such as a lecture-based outline or a content-based outline. While these tables of contents should be based on the content, the content itself is subject to change. Therefore, the ideal approach is to use
gitfor version control, creating different branches where each branch corresponds to a different table of contents structure, while frequently merging the content branches. This effectively resolves the table of contents issue, and these functionalities are primarily achieved throughgitrepository management. - If the document needs to be published online for browsing and distribution one day,
wordor Feishu documents cannot be converted into corresponding web display content with low cost. In contrast,markdownexcels in this area. There are currently manymarkdownstatic site frameworks, such ashexo,hugo,vuepress, andvitepress, all of which support convertingmarkdowninto corresponding web display content. - If a publisher needs to typeset the content for a book in the future, they only need to apply the target styles to the
markdowncontent. Since the base content has essentially no styling, adding the necessary styles later is straightforward.
Expected Behavior
This section illustrates the various stages of collaboration on a document, from its original word format through to multi-user editing.
- I have a document originally in
wordformat. I want to revise this document, ensuring that every change and the reason for that change are clearly recorded. Each change must be proposed to the teacher, and only implemented if the teacher approves. Every day, the latest version of the day’s work must be synchronized with the teacher. Multiple people, including anyone online, can point out issues with the content.
First, strip the word document of its formatting, retaining only the most basic elements, such as spaces and line breaks. Convert it to markdown format and store it in a git repository. The content of the file remains unchanged; only the formatting is removed. Then, import this markdown file into Feishu Cloud Docs. This allows everyone to provide feedback, ask questions, or mark up the text, including correcting grammatical errors. These corrections begin as comments. If approved, the content is updated; if rejected, a reason is provided, and the comment is closed. This way, everyone can focus on content issues rather than formatting details, such as bolding or italics. After discussion, the teacher decides whether to implement the content changes. If approved, the relevant changes are made. These changes are synchronized to the markdown repository once a day, along with a description of the changes. This completes the tracking of every fine-grained modification.
- I now want to generate two tables of contents: one is the initial lecture outline, and the other is a table of contents structured according to the lecture content.
First, the main branch master in the markdown repository contains the latest document content. If a specific table of contents is required, you can create an A-dir branch and a B-dir branch based on the master branch. Each branch can handle its own specific tasks. To update to the latest document content, you simply need to merge the latest content from master.
- I now want to publish all the articles on a website.
Organize the markdown files by directory. Choose a preferred ui framework, such as hexo, hugo, vuepress, or vitepress. Build the markdown files into corresponding web pages, deploy them to a server, and display the content.
- Now, group members want to see the latest revised version.
They simply need to access the corresponding Feishu document.
- Now, the teacher wants to obtain the latest version with all approved changes.
Export the online Feishu Cloud Docs directly to word or pdf.
- Now, a reader wants to leave a comment.
They simply need to access the corresponding Feishu document. However, it seems that leaving a comment requires registering a Feishu account, unlike viewing, which can be done anonymously. It is unclear whether Feishu supports anonymous comments.
Comments (0)
No comments yet. Be the first to leave one!