Hooks¶
Add
hooks.pyfile in the same folder ofmkdocs.ymlfile.In
mkdocs.ymlfile add:
Hooks for pre-processing markdown files¶
In hooks.py add function def on_page_markdown(markdown, **kwargs).
Hooks for processing config file¶
In hooks.py add function def on_config(config).
Hooks for processing page files¶
In hooks.py add function def on_page_context(context, page, config, nav).