Build documentation¶
Creating the Website with updated content.¶
there are multiple ways to create the website.
mkdocs new [dir-name]
- Create a new project.mkdocs serve
- Start the live-reloading docs server.mkdocs build -d <path>
- Build the documentation site to output path.mkdocs -h
- Print help message and exit.
Warning
The website generator creates the pages for each code reference (python file) automatically. The user does not need to create the pages manually. However, other pages such as tutorials or explanations should be created manually.
Contributing¶
If you want to create a new page, follow the given steps:
- Under the docs folder create or use related folder for each markdown file.
- Open
mkdocs.yml
and add the new page under thenav
tag with a relative path todocs
folder.
nav:
- index.md
# defer to gen-files + literate-nav
- Code Reference: reference/
- Tutorials:
- Getting Started: tutorials/install.md
# You can add new pages here
# ...
Developing Landing Page¶
Landing page extends the home.html
from mkdocs-material
theme. It uses tailwindcss
for styling. The developer has to run the following command to update the tailwindcss
styles.
npx tailwindcss -i ./docs/template/landing.css -o ./docs/css/landing.css --watch
Features¶
Most of the available features are defined here.