Install
Install mkdocs-material
:
Init MkDocs project:
This will create mkdocs.yml
file at the root of the project, as well as docs
directory with index.md
in it.
Configure MkDocs to use mkdocs-material
theme and apply some styling, configurations and modules to start with. Example:
Serve docs locally with:
Publish docs:
Update GitHub Repository to display link to the documentation website in the “About” section:
CI/CD
GitHub Actions workflow to publish docs. Place under .github/workflows/publish_docs.yaml
.
Make commands
Task commands
Add lightbox for images
Install mkdocs-glightbox
:
Add to mkdocs.yaml
config file: