diff --git a/mkdocs_mdpo_plugin/config.py b/mkdocs_mdpo_plugin/config.py index 1e6c720..5f8d933 100644 --- a/mkdocs_mdpo_plugin/config.py +++ b/mkdocs_mdpo_plugin/config.py @@ -23,7 +23,7 @@ def on_config_event(plugin, config, **kwargs): * Define properly `lc_messages`, `languages` and `locale_dir` configuration settings. - * Loads `mkdocs.mdpo` extension. + * Loads `mkdocs-mdpo` extension. * Configures md4c extensions accordingly to Python-Markdown extensions. * Stores the Markdown extensions used in the build in the ``extensions.markdown`` property of the plugin instance. @@ -128,10 +128,10 @@ def _languages_required(): if 'strikethrough' in plugin.extensions.md4c: plugin.extensions.md4c.remove('strikethrough') - # configure internal 'mkdocs.mdpo' extension - if 'mkdocs.mdpo' in markdown_extensions: # pragma: no cover - config['markdown_extensions'].remove('mkdocs.mdpo') - config['markdown_extensions'].append('mkdocs.mdpo') + # configure internal 'mkdocs-mdpo' extension + if 'mkdocs-mdpo' in markdown_extensions: # pragma: no cover + config['markdown_extensions'].remove('mkdocs-mdpo') + config['markdown_extensions'].append('mkdocs-mdpo') # store reference in plugin to markdown_extensions for later usage plugin.extensions.markdown = markdown_extensions diff --git a/mkdocs_mdpo_plugin/plugin.py b/mkdocs_mdpo_plugin/plugin.py index fb16e28..9cd682a 100644 --- a/mkdocs_mdpo_plugin/plugin.py +++ b/mkdocs_mdpo_plugin/plugin.py @@ -38,7 +38,7 @@ def __init__(self, *args, **kwargs): self.extensions = Extensions() # instance that represents the run - # (needed by `mkdocs.mdpo` extension) + # (needed by `mkdocs-mdpo` extension) MkdocsBuild.instance(self) super().__init__(*args, **kwargs) @@ -183,7 +183,7 @@ def on_page_markdown(self, markdown, page, config, files): * For each documentation page, creates another documentation page for each language that will be translated (part here and part - inside the `mkdocs.mdpo` extension, see + inside the `mkdocs-mdpo` extension, see :py:mod:`mkdocs_mdpo_plugin.extension` module). """ # only process original files, pages created for translation diff --git a/setup.cfg b/setup.cfg index 02f5367..f9d851d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -33,7 +33,7 @@ include_package_data = True [options.entry_points] markdown.extensions = - mkdocs.mdpo = mkdocs_mdpo_plugin.extensions:MkdocsMdpoExtension + mkdocs-mdpo = mkdocs_mdpo_plugin.extensions:MkdocsMdpoExtension mkdocs.plugins = mdpo = mkdocs_mdpo_plugin.plugin:MdpoPlugin