Skip to content

Commit

Permalink
add poe tasks for documentation if mkdocs enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Ramsay <seapagan@gmail.com>
  • Loading branch information
seapagan committed Sep 23, 2023
1 parent 4507fb0 commit d161c9c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions py_maker/template/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d161c9c

Please sign in to comment.