mkdocs_nype.plugins.canonical_merge.plugin
Synopsis
MkDocs plugin made to merge 2 build directories.
This plugin was formerly a hook:
It expects the default site
directory as source for the other files. It also adjusts canonical URL values of pages.
Note
- Nype's usage of this plugin was discontinued with this commit:
- It works in unison with the
prepare_structure.py
CI workflow script that needs to be run in CI separately:
MIT License 2024 Kamil Krzyśków (HRY) for Nype (npe.cm) and Fiori Tracker (fioritracker.org)
CanonicalMergePlugin
Bases: BasePlugin[CanonicalMergeConfig]
on_page_markdown
The pages need to have proper rel=canonical values
on_post_build
Copy the files over making sure some files aren't overriden