Skip to content

use_cases_section

Class info

🛈 DocStrings

_

_(page: MkPage)

Create the "Creating a sample website" MkPage.

Source code in mkdocs_mknodes/manual/use_cases_section.py
14
15
16
17
18
19
@nav.route.page("Creating a website via config", hide="toc")
def _(page: mk.MkPage):
    """Create the "Creating a sample website" MkPage."""
    config = pathlib.Path("configs/mkdocs_mkdocs.yml").read_text()
    variables = dict(config=config)
    page += mk.MkTemplate("use_case_default_website.jinja", variables=variables)