mkdocs-techdocs-core 1.4.1__tar.gz → 1.4.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mkdocs-techdocs-core
3
- Version: 1.4.1
3
+ Version: 1.4.2
4
4
  Summary: The core MkDocs plugin used by Backstage's TechDocs as a wrapper around multiple MkDocs plugins and Python Markdown extensions
5
5
  Home-page: https://github.com/backstage/mkdocs-techdocs-core
6
6
  Author: TechDocs Core
7
- Author-email: pulp-fiction@spotify.com
7
+ Author-email: protean@spotify.com
8
8
  License: Apache-2.0
9
9
  Description: # mkdocs-techdocs-core
10
10
 
@@ -157,6 +157,9 @@ Description: # mkdocs-techdocs-core
157
157
 
158
158
  ## Changelog
159
159
 
160
+ ### 1.4.2
161
+ - Fixes an issue where individual extension configurations were being ignored if the extension was included within `pymdownx.extra`. See [#147](https://github.com/backstage/mkdocs-techdocs-core/issues/147)
162
+
160
163
  ### 1.4.1
161
164
  - Introduced mkdocs-redirects plugin (v`1.2.1`).
162
165
 
@@ -149,6 +149,9 @@ We only use `material-mkdocs` as base styles because Backstage also uses the `Ma
149
149
 
150
150
  ## Changelog
151
151
 
152
+ ### 1.4.2
153
+ - Fixes an issue where individual extension configurations were being ignored if the extension was included within `pymdownx.extra`. See [#147](https://github.com/backstage/mkdocs-techdocs-core/issues/147)
154
+
152
155
  ### 1.4.1
153
156
  - Introduced mkdocs-redirects plugin (v`1.2.1`).
154
157
 
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mkdocs-techdocs-core
3
- Version: 1.4.1
3
+ Version: 1.4.2
4
4
  Summary: The core MkDocs plugin used by Backstage's TechDocs as a wrapper around multiple MkDocs plugins and Python Markdown extensions
5
5
  Home-page: https://github.com/backstage/mkdocs-techdocs-core
6
6
  Author: TechDocs Core
7
- Author-email: pulp-fiction@spotify.com
7
+ Author-email: protean@spotify.com
8
8
  License: Apache-2.0
9
9
  Description: # mkdocs-techdocs-core
10
10
 
@@ -157,6 +157,9 @@ Description: # mkdocs-techdocs-core
157
157
 
158
158
  ## Changelog
159
159
 
160
+ ### 1.4.2
161
+ - Fixes an issue where individual extension configurations were being ignored if the extension was included within `pymdownx.extra`. See [#147](https://github.com/backstage/mkdocs-techdocs-core/issues/147)
162
+
160
163
  ### 1.4.1
161
164
  - Introduced mkdocs-redirects plugin (v`1.2.1`).
162
165
 
@@ -28,7 +28,7 @@ with open("requirements.txt") as f:
28
28
 
29
29
  setup(
30
30
  name="mkdocs-techdocs-core",
31
- version="1.4.1",
31
+ version="1.4.2",
32
32
  description="The core MkDocs plugin used by Backstage's TechDocs as a wrapper around "
33
33
  "multiple MkDocs plugins and Python Markdown extensions",
34
34
  long_description=long_description,
@@ -36,7 +36,7 @@ setup(
36
36
  keywords="mkdocs",
37
37
  url="https://github.com/backstage/mkdocs-techdocs-core",
38
38
  author="TechDocs Core",
39
- author_email="pulp-fiction@spotify.com",
39
+ author_email="protean@spotify.com",
40
40
  license="Apache-2.0",
41
41
  python_requires=">=3.7",
42
42
  install_requires=required,
@@ -23,6 +23,7 @@ from mkdocs.contrib.search import SearchPlugin
23
23
  from material.plugins.search.plugin import SearchPlugin as MaterialSearchPlugin
24
24
  from mkdocs_monorepo_plugin.plugin import MonorepoPlugin
25
25
  from pymdownx.emoji import to_svg
26
+ from pymdownx.extra import extra_extensions
26
27
 
27
28
  log = logging.getLogger(__name__)
28
29
 
@@ -114,7 +115,6 @@ class TechDocsCore(BasePlugin):
114
115
  config["markdown_extensions"].append("pymdownx.mark")
115
116
  config["markdown_extensions"].append("pymdownx.smartsymbols")
116
117
  config["markdown_extensions"].append("pymdownx.snippets")
117
- config["markdown_extensions"].append("pymdownx.superfences")
118
118
  config["markdown_extensions"].append("pymdownx.highlight")
119
119
  config["mdx_configs"]["pymdownx.highlight"] = {
120
120
  "linenums": True,
@@ -134,6 +134,17 @@ class TechDocsCore(BasePlugin):
134
134
  }
135
135
  config["markdown_extensions"].append("pymdownx.tilde")
136
136
 
137
+ # merge individual extension configs under the pymdownx.extra extension namespace if individual extension is supplied by pymdownx.extra
138
+ # https://facelessuser.github.io/pymdown-extensions/extensions/extra/
139
+ if "pymdownx.extra" not in config["mdx_configs"]:
140
+ config["mdx_configs"]["pymdownx.extra"] = {}
141
+ for extension in extra_extensions:
142
+ if extension in config["mdx_configs"]:
143
+ config["mdx_configs"]["pymdownx.extra"][extension] = config[
144
+ "mdx_configs"
145
+ ][extension]
146
+ del config["mdx_configs"][extension]
147
+
137
148
  config["markdown_extensions"].append("markdown_inline_graphviz")
138
149
  config["markdown_extensions"].append("plantuml_markdown")
139
150
  config["markdown_extensions"].append("mdx_truly_sane_lists")