1
0
Fork
You've already forked docs-cookiecutter
0
Cookiecutter template for configuring a basic documentation repository with sane defaults for MkDocs with MkDocs Material.
  • Python 64.8%
  • Makefile 35.2%
2022年11月14日 11:34:25 +00:00
hooks first commit 2022年11月14日 09:46:44 +00:00
{{cookiecutter.__project_slug}} update for licence and badge changes 2022年11月14日 11:34:25 +00:00
.darglint first commit 2022年11月14日 09:46:44 +00:00
.flake8 first commit 2022年11月14日 09:46:44 +00:00
.gitignore first commit 2022年11月14日 09:46:44 +00:00
.pre-commit-config.yaml first commit 2022年11月14日 09:46:44 +00:00
cookiecutter.json first commit 2022年11月14日 09:46:44 +00:00
LICENSE first commit 2022年11月14日 09:46:44 +00:00
poetry.lock first commit 2022年11月14日 09:46:44 +00:00
pyproject.toml first commit 2022年11月14日 09:46:44 +00:00
README.md update for licence and badge changes 2022年11月14日 11:34:25 +00:00

Cookiecutter Documentation Template

License
pre-commit enabled Black codestyle

Cookiecutter template for configuring a basic documentation repository with sane defaults for MkDocs with MkDocs Material.

It is designed to fit with a Codeberg repository and associated Pages static site hosting setup. Adjust as necessary for your own provider.

Usage

Ensure you have cookiecutter installed first.

python3 -m pip install cookiecutter

Now use the template to create a new project and follow the prompts.

➜ python3 -m cookiecutter https://codeberg.org/mentor/docs-cookiecutter

The template supports Python 3.7, 3.8, 3.9, and 3.10.

Viewing the Docs

Using the provided makefile we can quickly generate the documentation for the project and then view it in a browser. This uses the mkdocs and mike packages and will live reload upon any changes to files within the docs directory.

make docs-dev

Publishing the Docs

If happy with the docs, use the make docs-publish command which will synchronise the main branch with the default site a user lands on and all other branches will get their own alias.