Documentation Guide¶
How to contribute to and maintain the Genji Shimada documentation.
Overview¶
The documentation is built with MkDocs Material and hosted on GitHub Pages at docs.genji.pk.
Documentation Structure¶
docs/
├── index.md # Home page
├── services/ # Service-level docs
├── getting-started/ # Installation and quickstart
├── bot/ # Bot documentation
├── api/ # API documentation
├── sdk/ # SDK documentation
├── web/ # Website documentation
├── operations/ # Infrastructure and deployment
├── contributing/ # Contribution guides
├── stylesheets/
│ └── extra.css # Custom Tailwind colors
└── openapi.json # Generated OpenAPI spec
Local Development¶
Preview Documentation¶
Serve the docs locally with live reload:
Visit http://127.0.0.1:8000 to view the documentation.
Build Documentation¶
Generate the OpenAPI spec and build the site:
Output is in site/.
Writing Documentation¶
Markdown Basics¶
Use GitHub-flavored Markdown with MkDocs Material extensions.
Headings:
Links:
Code blocks:
Inline code:
MkDocs Material Features¶
Admonitions¶
Highlight important information:
!!! note
This is a note.
!!! warning
This is a warning.
!!! tip
This is a tip.
!!! danger
This is a danger alert.
Result:
Note
This is a note.
Code Annotations¶
Add explanations to code blocks: