mkdocs_nype.plugins.only_blog_nav.plugin
Synopsis
MkDocs plugin made to hide non-blog navigation entries when displaying a blog.
This plugin was formerly a hook:
MIT License Kamil Krzyśków (HRY) for Nype (npe.cm) and Fiori Tracker (fioritracker.org)
LOG
Logger instance for this plugin.
MultiBlogAwareness
blog_prefixes
Each blog should register their prefix, cleared in on_config, filled in on_page_context
OnlyBlogNavPlugin
Bases: BasePlugin[OnlyBlogNavConfig]
on_nav
Run after blog plugin (-50). Gather 2 lists of nav entires that are inside and outside of the blog.
on_page_context
on_page_context(context: TemplateContext, /, *, page: Page, config: MkDocsConfig, nav: Navigation) -> TemplateContext | None
Repalce the nav for pages in the blog