Skip to content

mkdocs_demo.scripts

scripts module.

gen_ref_pages

This module generates reference pages for MkDocstrings.

_ module-attribute

mkdocs

This module generates script entrypoints for Poetry related to MkDocs.

build module-attribute

build = command_factory(
    cmd="mkdocs build --config-file src/mkdocs_demo/mkdocs.yml --clean --use-directory-urls"
)

serve module-attribute

serve = command_factory(
    cmd="mkdocs serve --config-file src/mkdocs_demo/mkdocs.yml"
)

mypy

This module generates script entrypoints for Poetry related to Mypy typings generation.

gen_types module-attribute

gen_types = command_factory(
    "stubgen -p mkdocs_demo -o typings"
)

precommit

This module generates script entrypoints for Poetry related to pre-commit.

install module-attribute

install = command_factory(cmd='pre-commit install')

run module-attribute

run = command_factory(cmd='pre-commit run --all-files')

update module-attribute

update = command_factory(cmd='pre-commit autoupdate')