This document is a guide for contributing to the Jupiter documentation. If you are not sure what is the best approach to make changes, you can reach out to the team via Discord or make an issue in this repository.
The documentation is built using Docusaurus, a modern static website generator.
- Configuration: The documentation configuration is located in the
docusaurus.config.jsfile. - CSS: The CSS files are located in the
/src/cssfolder. - Navbar: The navbar config is located in the
/src/constant.tsfile. - Sidebars: The sidebar config of the dev docs are located in the
sidebars-docs.jsfile. - Markdown files: The content of the dev docs is located in the
/docsfolder.
For API schema:
- Configuration: The API schema configuration uses the
docusaurus-plugin-openapi-docsplugin indocusaurus.config.js. - OpenAPI schemas: The OpenAPI schemas are located in the
/openapifolder. - OpenAPI generation:
- To generate the markdown from the schema run
pnpm docusaurus gen-api-docs <all or a specific id>or - To clean the generated files run
pnpm docusaurus clean-api-docs <all or a specific id>. - The markdown files are generated in the
/docs/apifolder.
- To generate the markdown from the schema run
- To add a new page, create a new markdown file in the
/docs/<category>folder. - To add a new category, create a new folder in the
/docsfolder and every category has its own sidebar and navbar config.- Add it to the
/src/constant.tsfile to add to navbar. - Add it to the
sidebars-docs.jsfile.
- Add it to the