Documentation Contribution Guide
Overview
The directories zh and en represent Chinese and English documentation, respectively. The images directory contains the corresponding image content.
Markdown Function Support Guide
For the content supported by Markdown, you can refer to the VitePress Writing Guide for information on Markdown functionality and writing guidelines.
Notes
- When you write documentation in the
zhdirectory, you need to copy it to the correspondingendirectory. If you have time, you can use a large language model to translate it into the corresponding language. The same applies when writingendocumentation. - Store the corresponding document images in the
imagesdirectory. The naming format should bedocument-name-number. - If you need to reference other documents, you can refer to the VitePress Writing Guide. Many writing-related extension features can be found there to answer your questions.
- After completing the writing task, you need to add it to the corresponding directory. For specific steps, please refer to the content below.
How to Add Documents to the Directory
Open the
doc/.vitepress/src/sidebarsdirectory, as shown in the following figure:
Here,
enrepresents the English directory, andzhrepresents the Chinese directory. We will use theendirectory as an example:tsexport const sidebar = [ { text: "Architect", collapsed: true, items: [ {text: "Overview", link: "/en/Architect/Overview"}, {text: "Meta Service", link: "/en/Architect/Meta-Service"}, {text: "Broker Server", link: "/en/Architect/Broker-Server"}, {text: "Storage Adapter", link: "/en/Architect/Storage-Adapter"}, {text: "Journal Server", link: "/en/Architect/Journal-Server"}, {text: "Ig Test", link: "/en/Architect/Test-Case"}, { text: "Configuration", collapsed: true, items: [ {text: "Meta Service", link: "/en/Configuration/META"}, {text: "MQTT Broker", link: "/en/Configuration/MQTT"}, ], }, ], }, ]The corresponding directory structure displayed is shown in the following figure:

The structure in the
endirectory is shown in the following figure:
Therefore, if you want to add a
Test.mddocument to the corresponding directory, you just need to add the following content to theen.mtsandzh.mtsindoc/.vitepress/src/sidebarsto add the content to the directory:tsexport const sidebar = [ { text: "Architect", collapsed: true, items: [ {text: "Overview", link: "/en/Architect/Overview"}, {text: "Meta Service", link: "/en/Architect/Meta-Service"}, {text: "Broker Server", link: "/en/Architect/Broker-Server"}, {text: "Storage Adapter", link: "/en/Architect/Storage-Adapter"}, {text: "Journal Server", link: "/en/Architect/Journal-Server"}, {text: "Ig Test", link: "/en/Architect/Test-Case"}, {text: "Test", link: "/en/Architect/Test"}, { text: "Configuration", collapsed: true, items: [ {text: "Meta Service", link: "/en/Configuration/META"}, {text: "MQTT Broker", link: "/en/Configuration/MQTT"}, ], }, ], }, ]TIP
If you want to learn more about how to use it, you can refer to the VitePress Sidebar Documentation.
