From d161c9ce963bebc1461f62c642ce663cee7c58b8 Mon Sep 17 00:00:00 2001 From: Grant Ramsay Date: Sat, 23 Sep 2023 11:41:49 +0100 Subject: [PATCH] add poe tasks for documentation if mkdocs enabled Signed-off-by: Grant Ramsay --- py_maker/template/pyproject.toml.jinja | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/py_maker/template/pyproject.toml.jinja b/py_maker/template/pyproject.toml.jinja index 0774aa09..8aef2f5f 100644 --- a/py_maker/template/pyproject.toml.jinja +++ b/py_maker/template/pyproject.toml.jinja @@ -93,7 +93,16 @@ black = "black **/*.py" try = "tryceratops **/*.py" markdown = "pymarkdown scan **/*.md" lint = ["black", "flake8", "pylint", "mypy", "try"] +{% endif %} +{% if options.docs %} +"docs:publish" = "mkdocs gh-deploy" +"docs:build" = "mkdocs build" +"docs:serve" = "mkdocs serve -w TODO.md -w CHANGELOG.md" +"docs:serve:all" = "mkdocs serve -w TODO.md -w CHANGELOG.md -a 0.0.0.0:9000" +{% endif %} + +{% if options.lint %} # configure assorted tools and linters [tool.isort] profile = "black"