mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-01-19 21:37:31 +08:00
1.1 KiB
1.1 KiB
Introduction
MkDocs is a static site generator that's geared towards building project documentation. Documentation source files are written in Markdown, and configured with a single YAML configuration file.
Installation
MkDocs is a Python library and there are also some extras recommended plugins to be installed.
mkdocs-material- Thememkdocstrings- Auto generate documentation from docstringsmkdocs-jupyter- Embed Jupyter notebook in the documentation
=== "Poetry"
```bash
poetry add -G doc mkdocs mkdocs-material "mkdocstrings[python]" mkdocs-jupyter
```
=== "Conda"
```bash
conda install mkdocs mkdocs-material mkdocstrings mkdocs-jupyter
```
Workflow
-
Install mkdocs and the plugins as above
-
Run
mkdocs new .in the project root folder. It will createmkdocs.ymlanddocsfolder -
Edit
mkdocs.ymlto configure the site -
Write the documentation in
docsfolder