We use Mintlify to build our documentation.
To build the docs, clone this repo, install the mintlify CLI, and run the development server.
Install Mintlify CLI
npm i -g mintlify
mintlify dev
docs/
: Markdown files for the documentationasstes/
: Static files like images
If you want to create a new page group, create a directory at the root level.
This refers to the group managed by Mintlify's tabs.
Each page can be written in MDX, but to reflect it in the actual page, you need to edit mint.json.
See the Mintlify documentation for more details.
The navigation array in mint.json is an item for declaring the page group, and by setting navigation, you can use that group in the sidebar or tab. Therefore, you must add a setting to the navigation when you add a page.
{
"navigation": [
{
"group": "Get Started",
"version": "en",
"pages": [
"docs/en/introduction",
"docs/en/quickstart",
"docs/en/development"
]
}
]
}
If you are interested in contributing to Morph Docs, please create a branch in the local environment and create a PR towards the main branch.
The main branch is automatically deployed when a PR is merged.
You can contribute code to the docs by following these steps:
- Fork the repository
- Create a branch
- Make changes
- Create a PR to main branch