This repo hosts the documentation site for MetaGPT. To make a contribution, simply prepare a markdown file and submit a Pull Request (PR). Upon the approval and merge of your PR, your markdown document will be automatically rendered to the documentation website. We welcome a diverse range of submissions, from usage guidance and typo corrections to practical application and beyond!
├─ src
│ ├─ en # English docs
│ │ ├─ index.md # Home page
│ │ ├─ guide # Content pages
│ │ │ ├─ get_started # Section on the website
│ │ │ │ ├─ introduction.md # One page on the website
│ │ │ │ ├─ quickstart.md # One page on the website
│ │ │ │ ├─ ... # More pages
│ │ │ ├─ tutorials # Section on the website
│ │ │ ├─ ... # More sections
│ ├─ zh # 中文文档 Same structure as en
│ ├─ rfcs # RFC files
│ ├─ public # Resources, put images or videos here
│ ├─ blog # Blog files
│ ├─ utils # Some utils
├─ vitepress/config.mts # Navbar & sidebar config
- Find the file of your interest by navigating
src/[language]/guide
and make your changes. The files are aranged to reflect the hierarchy on the documentation site. For example,src/en/guide/get_started/quickstart.md
corresponds tohttps://docs.deepwisdom.ai/en/guide/get_started/quickstart.html
- Place your media files such as images or videos under
src/public/image/guide
, the path should correspond to the documents using the media. Documents of different languages use the same media. In your document, use relative path to refer to the media - Translate: If you are adding a new file, translate the documents to all languages. We will provide a Translator agent soon
- For editting the sidebar, change
src/.vitepress/config.mts
, find the dictionary undersidebar
- Commit and submit a PR, done!
This section is relevant if you want to precheck how your changes will be rendered on the document site.
- Node.js version 18 or higher.
- Text Editor with Markdown syntax support.
- VSCode is recommended, along with the official Vue extension.
follow steps below to start the dev server
-
corepack enable pnpm
to use pnpmor refer to pnpm Installation
-
pnpm i
to install dependency -
npm run docs:dev
The dev server should be running at http://localhost:5173. Visit the URL in your browser to see your new site in action!