Skip to content

Writer

Sub classes

Name Children Inherits
ZensicalWriter
mkdocs_mknodes.writers.zensical
Write a `BuildOutput` as Zensical input: docs folder + generated config.

    πŸ›ˆ DocStrings

    Turns a BuildOutput into the input files of a static site engine.

    Source code in mkdocs_mknodes/writers/base.py
    class Writer:
        """Turns a `BuildOutput` into the input files of a static site engine."""
    
        name: str = ""
    
        def __init__(self, settings: GeneratorSettings) -> None:
            self.settings = settings
    
        def write(self, output: BuildOutput) -> pathlib.Path:
            """Write the output. Returns the path of the config file to build with."""
            raise NotImplementedError
    
        def build_command(
            self, *, serve: bool = False, extra_args: list[str] | None = None
        ) -> list[str]:
            """Return the command which builds (or serves) the written site."""
            raise NotImplementedError
    

    build_command

    build_command(*, serve: bool = False, extra_args: list[str] | None = None) -> list[str]
    

    Return the command which builds (or serves) the written site.

    Source code in mkdocs_mknodes/writers/base.py
    def build_command(
        self, *, serve: bool = False, extra_args: list[str] | None = None
    ) -> list[str]:
        """Return the command which builds (or serves) the written site."""
        raise NotImplementedError
    

    write

    write(output: BuildOutput) -> Path
    

    Write the output. Returns the path of the config file to build with.

    Source code in mkdocs_mknodes/writers/base.py
    def write(self, output: BuildOutput) -> pathlib.Path:
        """Write the output. Returns the path of the config file to build with."""
        raise NotImplementedError
    

    :fa-brands-github: Show source on GitHub

    Page info
    Resources
    Resources(css=[],
              markdown_extensions={'tables': {}},
              plugins=[Plugin('mkdocstrings')],
              js=[],
              assets=[],
              packages=[])
    
    Metadata
    created:
      source_filename: /home/runner/work/mkdocs-mknodes/mkdocs-mknodes/.venv/lib/python3.13/site-packages/mknodes/pages/mkclasspage/__init__.py
      source_function: MkClassPage.__init__
      source_line_no: 46
    title: Writer