Skip to content

Script

πŸ›ˆ DocStrings

A JavaScript file to include in every page.

Parameters:

Name Type Description Default
path str

URL or path relative to the docs root.

required
defer bool
False
async_ bool
False
typ str | None
None
Source code in mkdocs_mknodes/generator/output.py
@dataclasses.dataclass
class Script:
    """A JavaScript file to include in every page."""

    path: str
    """URL or path relative to the docs root."""
    defer: bool = False
    async_: bool = False
    typ: str | None = None

path instance-attribute

path: str

URL or path relative to the docs root.

:fa-brands-github: Show source on GitHub

Page info
Resources
Resources(css=[],
          markdown_extensions={},
          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: Script