Getting startedโ๏ธ
Installationโ๏ธ
Without asdf vmโ๏ธ
# This project uses python 3.10.4
python --version
# Install poetry
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py
# Check if poetry is installed
poetry --version
With asdf vm (recommended)โ๏ธ
The project contains .tool-versions
file with the versions of tools that are used in the project.
# Install asdf version manager from https://asdf-vm.com/guide/getting-started.html#_3-install-asdf
# Install all asdf plugins defined in .tool-versions
cat .tool-versions | awk '{print $1}' | xargs -I _ asdf plugin add _
asdf install
# Check if poetry is installed
poetry --version
Developmentโ๏ธ
Install dependenciesโ๏ธ
poetry install
Start virtual environmentโ๏ธ
poetry shell
Run dev serverโ๏ธ
poetry run mkdocs serve
Buildโ๏ธ
poetry run mkdocs build
Optionally, you can specify additional arguments to the build command:
poetry run mkdocs build --verbose --clean --site-dir site
Testingโ๏ธ
Since this is a documentation project, it is not necessary to test it.
Deploymentโ๏ธ
The project is deployed to GitHub Pages automatically by .github/workflows/deploy.yml
github workflow. You can deploy it manually by running the following command:
poetry run mkdocs gh-deploy
Contributingโ๏ธ
Project layoutโ๏ธ
mkdocs.yml # The configuration file.
docs/
index.md # The documentation homepage.
... # Other markdown pages, images and other files.
For more infomation, refer to mkdocs-material
documentation.