Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update contribution guide #36

Merged
merged 3 commits into from
Dec 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 41 additions & 20 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,49 @@
# Prerequisites
# MetaGPT-docs Contributing Guide

## Overview

This repo hosts the [documentation site](https://docs.deepwisdom.ai/) for [MetaGPT](https://github.com/geekan/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!

## File structure

```text
├─ 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
```

## Make contribution

- Find the file of your interest by navigating `src/[language]/guide` and make your changes. The files are aranged to reflect the hierachy on the documentation site. For example, `src/en/guide/get_started/quickstart.md` corresponds to `https://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 under `sidebar`
- Commit and submit a PR, done!

# Local Deployment

This section is relevant if you want to precheck how your changes will be rendered on the document site.

## Prerequisites

- [Node.js](https://nodejs.org/en) version 18 or higher.
- Text Editor with [Markdown](https://en.wikipedia.org/wiki/Markdown) syntax support.
- [VSCode](https://code.visualstudio.com/) is recommended, along with the [official Vue extension](https://marketplace.visualstudio.com/items?itemName=Vue.volar).

# Up and Running
## Up and Running

follow steps below to start the dev server

Expand All @@ -15,21 +54,3 @@ follow steps below to start the dev server
3. `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!

# file structure

```text
├─ src
| ├─ blog # blog file /blog/xxx
| ├─ guide # /guide/xxx
| ├─ rfcs # /rfcs/xxx
| ├─ public # you can put resource here
| ├─ utils # some utils
| ├─ index.md # home page;
| ├─ zhcn # 中文文档 same as src; config at ./vitepress/config.mts [locales.zhcn.themeConfig]

```

# deploy status

[![Netlify Status](https://api.netlify.com/api/v1/badges/08d5971b-904b-4556-9270-e5c4a4368c5c/deploy-status)](https://app.netlify.com/sites/metagpt-docs/deploys)
Loading