pip install -r requirements.txt
npm install
npm install -g sass
Build static site
mkdocs build
Start local server
mkdocs serve
Tip
If you encounter cairo linking issue, you can try the workaround solution.
If you are updating the CSS styles for the landing page
, it is generated from the root sass
:
sass --watch sass/home.sass docs/styles/home.css
Extra css for documentation pages can be added here:
/docs/styles/extra.css
Overrides, such as the custom landing page, are stored in the following location:
/material/overrides
Configuration options are set in the mkdocs.yml
file.
- To add new features, create a Markdown file in
docs/docs/features
and added a title, e.g.:
---
title: Histogram Diff
---
- Add the page to the
nav
block inmkdocs,yml
:
nav:
- index.md
...
- Features:
- docs/features/histogram-diff.md
...
- Add images to
docs/assets/images/features
https://squidfunk.github.io/mkdocs-material/setup/
Please use pngquant to optimize any PNG files:
pngquant --force --quality=100 --strip --skip-if-larger --verbose <filename>.png
Try to keep animated gifs no bigger than around 1MB. Only use multiple large gifs on one page if absolutely neccessary.