orzih / mkdocs-with-pdf

Generate a single PDF file from MkDocs repository.
MIT License
325 stars 76 forks source link

Compatible with mkdocs-static-i18n plugin #68

Closed Maddin-619 closed 2 years ago

Maddin-619 commented 3 years ago

Overall PR: https://github.com/mkdocs/mkdocs/pull/2487

To make this plugin compatible with the mkdocs-static-i18n plugin it have to be deep copyable. It should also get the config from the object passed to the on_config event and not the locale one, because the i18n plugin prefixes the output_path with the language on a deep copied config.