mkdocs-techdocs-core 1.5.2__tar.gz → 1.5.3__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.
- {mkdocs_techdocs_core-1.5.2 → mkdocs_techdocs_core-1.5.3}/PKG-INFO +16 -4
- {mkdocs_techdocs_core-1.5.2 → mkdocs_techdocs_core-1.5.3}/README.md +12 -0
- {mkdocs_techdocs_core-1.5.2 → mkdocs_techdocs_core-1.5.3}/mkdocs_techdocs_core.egg-info/PKG-INFO +16 -4
- {mkdocs_techdocs_core-1.5.2 → mkdocs_techdocs_core-1.5.3}/mkdocs_techdocs_core.egg-info/requires.txt +3 -3
- {mkdocs_techdocs_core-1.5.2 → mkdocs_techdocs_core-1.5.3}/requirements.txt +3 -3
- {mkdocs_techdocs_core-1.5.2 → mkdocs_techdocs_core-1.5.3}/setup.py +1 -1
- {mkdocs_techdocs_core-1.5.2 → mkdocs_techdocs_core-1.5.3}/techdocs_core/core.py +67 -19
- {mkdocs_techdocs_core-1.5.2 → mkdocs_techdocs_core-1.5.3}/techdocs_core/test_core.py +48 -0
- {mkdocs_techdocs_core-1.5.2 → mkdocs_techdocs_core-1.5.3}/LICENSE +0 -0
- {mkdocs_techdocs_core-1.5.2 → mkdocs_techdocs_core-1.5.3}/mkdocs_techdocs_core.egg-info/SOURCES.txt +0 -0
- {mkdocs_techdocs_core-1.5.2 → mkdocs_techdocs_core-1.5.3}/mkdocs_techdocs_core.egg-info/dependency_links.txt +0 -0
- {mkdocs_techdocs_core-1.5.2 → mkdocs_techdocs_core-1.5.3}/mkdocs_techdocs_core.egg-info/entry_points.txt +0 -0
- {mkdocs_techdocs_core-1.5.2 → mkdocs_techdocs_core-1.5.3}/mkdocs_techdocs_core.egg-info/top_level.txt +0 -0
- {mkdocs_techdocs_core-1.5.2 → mkdocs_techdocs_core-1.5.3}/setup.cfg +0 -0
- {mkdocs_techdocs_core-1.5.2 → mkdocs_techdocs_core-1.5.3}/techdocs_core/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: mkdocs-techdocs-core
|
|
3
|
-
Version: 1.5.
|
|
3
|
+
Version: 1.5.3
|
|
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
|
|
@@ -23,12 +23,12 @@ Description-Content-Type: text/markdown
|
|
|
23
23
|
License-File: LICENSE
|
|
24
24
|
Requires-Dist: mkdocs>=1.6
|
|
25
25
|
Requires-Dist: Markdown<3.8,>=3.2
|
|
26
|
-
Requires-Dist: mkdocs-material==9.5
|
|
26
|
+
Requires-Dist: mkdocs-material==9.6.5
|
|
27
27
|
Requires-Dist: markdown-graphviz-inline==1.1.3
|
|
28
28
|
Requires-Dist: mkdocs-monorepo-plugin==1.1.0
|
|
29
|
-
Requires-Dist: plantuml-markdown==3.
|
|
29
|
+
Requires-Dist: plantuml-markdown==3.11.1
|
|
30
30
|
Requires-Dist: mdx_truly_sane_lists==1.3
|
|
31
|
-
Requires-Dist: pymdown-extensions==10.
|
|
31
|
+
Requires-Dist: pymdown-extensions==10.14.3
|
|
32
32
|
Requires-Dist: pygments==2.19.1
|
|
33
33
|
Requires-Dist: mkdocs-redirects==1.2.2
|
|
34
34
|
Dynamic: author
|
|
@@ -78,6 +78,14 @@ plugins:
|
|
|
78
78
|
use_material_search: true
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
+
(Optional) To use [PyMdown Blocks Extensions](https://facelessuser.github.io/pymdown-extensions/extensions/blocks/) (replaces `admonitions`, `pymdownx.details` and `pymdownx.tabbed` extensions), you need to add the following configuration to your `mkdocs.yml`:
|
|
82
|
+
|
|
83
|
+
```yaml
|
|
84
|
+
plugins:
|
|
85
|
+
- techdocs-core:
|
|
86
|
+
use_pymdownx_blocks: true
|
|
87
|
+
```
|
|
88
|
+
|
|
81
89
|
## Development
|
|
82
90
|
|
|
83
91
|
### Running Locally
|
|
@@ -194,6 +202,10 @@ We only use `material-mkdocs` as base styles because Backstage also uses the `Ma
|
|
|
194
202
|
|
|
195
203
|
## Changelog
|
|
196
204
|
|
|
205
|
+
### 1.5.3
|
|
206
|
+
|
|
207
|
+
- Added support for PyMdown Blocks extensions
|
|
208
|
+
|
|
197
209
|
### 1.5.2
|
|
198
210
|
|
|
199
211
|
- Update `markdown_inline_graphviz_extension` to use forked `markdown-graphviz-inline` instead due to abandonment of original dependency.
|
|
@@ -33,6 +33,14 @@ plugins:
|
|
|
33
33
|
use_material_search: true
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
+
(Optional) To use [PyMdown Blocks Extensions](https://facelessuser.github.io/pymdown-extensions/extensions/blocks/) (replaces `admonitions`, `pymdownx.details` and `pymdownx.tabbed` extensions), you need to add the following configuration to your `mkdocs.yml`:
|
|
37
|
+
|
|
38
|
+
```yaml
|
|
39
|
+
plugins:
|
|
40
|
+
- techdocs-core:
|
|
41
|
+
use_pymdownx_blocks: true
|
|
42
|
+
```
|
|
43
|
+
|
|
36
44
|
## Development
|
|
37
45
|
|
|
38
46
|
### Running Locally
|
|
@@ -149,6 +157,10 @@ We only use `material-mkdocs` as base styles because Backstage also uses the `Ma
|
|
|
149
157
|
|
|
150
158
|
## Changelog
|
|
151
159
|
|
|
160
|
+
### 1.5.3
|
|
161
|
+
|
|
162
|
+
- Added support for PyMdown Blocks extensions
|
|
163
|
+
|
|
152
164
|
### 1.5.2
|
|
153
165
|
|
|
154
166
|
- Update `markdown_inline_graphviz_extension` to use forked `markdown-graphviz-inline` instead due to abandonment of original dependency.
|
{mkdocs_techdocs_core-1.5.2 → mkdocs_techdocs_core-1.5.3}/mkdocs_techdocs_core.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: mkdocs-techdocs-core
|
|
3
|
-
Version: 1.5.
|
|
3
|
+
Version: 1.5.3
|
|
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
|
|
@@ -23,12 +23,12 @@ Description-Content-Type: text/markdown
|
|
|
23
23
|
License-File: LICENSE
|
|
24
24
|
Requires-Dist: mkdocs>=1.6
|
|
25
25
|
Requires-Dist: Markdown<3.8,>=3.2
|
|
26
|
-
Requires-Dist: mkdocs-material==9.5
|
|
26
|
+
Requires-Dist: mkdocs-material==9.6.5
|
|
27
27
|
Requires-Dist: markdown-graphviz-inline==1.1.3
|
|
28
28
|
Requires-Dist: mkdocs-monorepo-plugin==1.1.0
|
|
29
|
-
Requires-Dist: plantuml-markdown==3.
|
|
29
|
+
Requires-Dist: plantuml-markdown==3.11.1
|
|
30
30
|
Requires-Dist: mdx_truly_sane_lists==1.3
|
|
31
|
-
Requires-Dist: pymdown-extensions==10.
|
|
31
|
+
Requires-Dist: pymdown-extensions==10.14.3
|
|
32
32
|
Requires-Dist: pygments==2.19.1
|
|
33
33
|
Requires-Dist: mkdocs-redirects==1.2.2
|
|
34
34
|
Dynamic: author
|
|
@@ -78,6 +78,14 @@ plugins:
|
|
|
78
78
|
use_material_search: true
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
+
(Optional) To use [PyMdown Blocks Extensions](https://facelessuser.github.io/pymdown-extensions/extensions/blocks/) (replaces `admonitions`, `pymdownx.details` and `pymdownx.tabbed` extensions), you need to add the following configuration to your `mkdocs.yml`:
|
|
82
|
+
|
|
83
|
+
```yaml
|
|
84
|
+
plugins:
|
|
85
|
+
- techdocs-core:
|
|
86
|
+
use_pymdownx_blocks: true
|
|
87
|
+
```
|
|
88
|
+
|
|
81
89
|
## Development
|
|
82
90
|
|
|
83
91
|
### Running Locally
|
|
@@ -194,6 +202,10 @@ We only use `material-mkdocs` as base styles because Backstage also uses the `Ma
|
|
|
194
202
|
|
|
195
203
|
## Changelog
|
|
196
204
|
|
|
205
|
+
### 1.5.3
|
|
206
|
+
|
|
207
|
+
- Added support for PyMdown Blocks extensions
|
|
208
|
+
|
|
197
209
|
### 1.5.2
|
|
198
210
|
|
|
199
211
|
- Update `markdown_inline_graphviz_extension` to use forked `markdown-graphviz-inline` instead due to abandonment of original dependency.
|
{mkdocs_techdocs_core-1.5.2 → mkdocs_techdocs_core-1.5.3}/mkdocs_techdocs_core.egg-info/requires.txt
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
mkdocs>=1.6
|
|
2
2
|
Markdown<3.8,>=3.2
|
|
3
|
-
mkdocs-material==9.5
|
|
3
|
+
mkdocs-material==9.6.5
|
|
4
4
|
markdown-graphviz-inline==1.1.3
|
|
5
5
|
mkdocs-monorepo-plugin==1.1.0
|
|
6
|
-
plantuml-markdown==3.
|
|
6
|
+
plantuml-markdown==3.11.1
|
|
7
7
|
mdx_truly_sane_lists==1.3
|
|
8
|
-
pymdown-extensions==10.
|
|
8
|
+
pymdown-extensions==10.14.3
|
|
9
9
|
pygments==2.19.1
|
|
10
10
|
mkdocs-redirects==1.2.2
|
|
@@ -9,12 +9,12 @@ Markdown>=3.2,<3.8
|
|
|
9
9
|
# pinned to an exact version. Bumps should be accompanied by release notes
|
|
10
10
|
# explaining what was added or fixed (or at least pointing to the underlying
|
|
11
11
|
# release notes of the bumped package).
|
|
12
|
-
mkdocs-material==9.5
|
|
12
|
+
mkdocs-material==9.6.5
|
|
13
13
|
markdown-graphviz-inline==1.1.3
|
|
14
14
|
mkdocs-monorepo-plugin==1.1.0
|
|
15
|
-
plantuml-markdown==3.
|
|
15
|
+
plantuml-markdown==3.11.1
|
|
16
16
|
mdx_truly_sane_lists==1.3
|
|
17
|
-
pymdown-extensions==10.
|
|
17
|
+
pymdown-extensions==10.14.3
|
|
18
18
|
pygments==2.19.1
|
|
19
19
|
mkdocs-redirects==1.2.2
|
|
20
20
|
|
|
@@ -28,7 +28,7 @@ with open("requirements.txt") as f:
|
|
|
28
28
|
|
|
29
29
|
setup(
|
|
30
30
|
name="mkdocs-techdocs-core",
|
|
31
|
-
version="1.5.
|
|
31
|
+
version="1.5.3",
|
|
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,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"""
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
* Copyright 2020 The Backstage Authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
17
|
import tempfile
|
|
@@ -79,6 +79,9 @@ class TechDocsCore(BasePlugin):
|
|
|
79
79
|
use_material_search = config["plugins"]["techdocs-core"].config.get(
|
|
80
80
|
"use_material_search", False
|
|
81
81
|
)
|
|
82
|
+
use_pymdownx_blocks = config["plugins"]["techdocs-core"].config.get(
|
|
83
|
+
"use_pymdownx_blocks", False
|
|
84
|
+
)
|
|
82
85
|
del config["plugins"]["techdocs-core"]
|
|
83
86
|
|
|
84
87
|
if use_material_search:
|
|
@@ -99,15 +102,64 @@ class TechDocsCore(BasePlugin):
|
|
|
99
102
|
if "mdx_configs" not in config:
|
|
100
103
|
config["mdx_configs"] = {}
|
|
101
104
|
|
|
102
|
-
config["markdown_extensions"].append("admonition")
|
|
103
105
|
config["markdown_extensions"].append("toc")
|
|
104
106
|
config["mdx_configs"]["toc"] = {
|
|
105
107
|
"permalink": True,
|
|
106
108
|
}
|
|
107
109
|
|
|
110
|
+
if use_pymdownx_blocks:
|
|
111
|
+
config["markdown_extensions"].append("pymdownx.blocks.admonition")
|
|
112
|
+
config["mdx_configs"]["pymdownx.blocks.admonition"] = {
|
|
113
|
+
"types": [
|
|
114
|
+
"new",
|
|
115
|
+
"settings",
|
|
116
|
+
"note",
|
|
117
|
+
"abstract",
|
|
118
|
+
"info",
|
|
119
|
+
"tip",
|
|
120
|
+
"success",
|
|
121
|
+
"question",
|
|
122
|
+
"warning",
|
|
123
|
+
"failure",
|
|
124
|
+
"danger",
|
|
125
|
+
"bug",
|
|
126
|
+
"example",
|
|
127
|
+
"quote",
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
config["markdown_extensions"].append("pymdownx.blocks.details")
|
|
131
|
+
config["mdx_configs"]["pymdownx.blocks.details"] = {
|
|
132
|
+
"types": [
|
|
133
|
+
{"name": "details-new", "class": "new"},
|
|
134
|
+
{"name": "details-settings", "class": "settings"},
|
|
135
|
+
{"name": "details-note", "class": "note"},
|
|
136
|
+
{"name": "details-abstract", "class": "abstract"},
|
|
137
|
+
{"name": "details-info", "class": "info"},
|
|
138
|
+
{"name": "details-tip", "class": "tip"},
|
|
139
|
+
{"name": "details-success", "class": "success"},
|
|
140
|
+
{"name": "details-question", "class": "question"},
|
|
141
|
+
{"name": "details-warning", "class": "warning"},
|
|
142
|
+
{"name": "details-failure", "class": "failure"},
|
|
143
|
+
{"name": "details-danger", "class": "danger"},
|
|
144
|
+
{"name": "details-bug", "class": "bug"},
|
|
145
|
+
{"name": "details-example", "class": "example"},
|
|
146
|
+
{"name": "details-quote", "class": "quote"},
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
config["markdown_extensions"].append("pymdownx.blocks.tab")
|
|
150
|
+
config["mdx_configs"]["pymdownx.blocks.tab"] = {
|
|
151
|
+
"alternate_style": True,
|
|
152
|
+
}
|
|
153
|
+
else:
|
|
154
|
+
config["markdown_extensions"].append("admonition")
|
|
155
|
+
config["markdown_extensions"].append("pymdownx.details")
|
|
156
|
+
config["markdown_extensions"].append("pymdownx.tabbed")
|
|
157
|
+
config["mdx_configs"]["pymdownx.tabbed"] = {
|
|
158
|
+
"alternate_style": True,
|
|
159
|
+
}
|
|
160
|
+
|
|
108
161
|
config["markdown_extensions"].append("pymdownx.caret")
|
|
109
162
|
config["markdown_extensions"].append("pymdownx.critic")
|
|
110
|
-
config["markdown_extensions"].append("pymdownx.details")
|
|
111
163
|
config["markdown_extensions"].append("pymdownx.emoji")
|
|
112
164
|
config["mdx_configs"]["pymdownx.emoji"] = {"emoji_generator": to_svg}
|
|
113
165
|
config["markdown_extensions"].append("pymdownx.inlinehilite")
|
|
@@ -124,10 +176,6 @@ class TechDocsCore(BasePlugin):
|
|
|
124
176
|
config["mdx_configs"]["pymdownx.betterem"] = {
|
|
125
177
|
"smart_enable": "all",
|
|
126
178
|
}
|
|
127
|
-
config["markdown_extensions"].append("pymdownx.tabbed")
|
|
128
|
-
config["mdx_configs"]["pymdownx.tabbed"] = {
|
|
129
|
-
"alternate_style": True,
|
|
130
|
-
}
|
|
131
179
|
config["markdown_extensions"].append("pymdownx.tasklist")
|
|
132
180
|
config["mdx_configs"]["pymdownx.tasklist"] = {
|
|
133
181
|
"custom_checkbox": True,
|
|
@@ -131,3 +131,51 @@ class TestTechDocsCoreConfig(unittest.TestCase):
|
|
|
131
131
|
self.assertEqual(
|
|
132
132
|
final_config["plugins"]["search"].__module__, "mkdocs.contrib.search"
|
|
133
133
|
)
|
|
134
|
+
|
|
135
|
+
def test_pymdownx_blocks(self):
|
|
136
|
+
self.plugin_collection["techdocs-core"].load_config(
|
|
137
|
+
{"use_pymdownx_blocks": True}
|
|
138
|
+
)
|
|
139
|
+
final_config = self.techdocscore.on_config(self.mkdocs_yaml_config)
|
|
140
|
+
|
|
141
|
+
self.assertTrue(
|
|
142
|
+
"pymdownx.blocks.admonition" in final_config["markdown_extensions"]
|
|
143
|
+
)
|
|
144
|
+
self.assertTrue(
|
|
145
|
+
"pymdownx.blocks.details" in final_config["markdown_extensions"]
|
|
146
|
+
)
|
|
147
|
+
self.assertTrue("pymdownx.blocks.tab" in final_config["markdown_extensions"])
|
|
148
|
+
self.assertTrue(
|
|
149
|
+
"types" in final_config["mdx_configs"]["pymdownx.blocks.admonition"]
|
|
150
|
+
)
|
|
151
|
+
self.assertTrue(
|
|
152
|
+
"types" in final_config["mdx_configs"]["pymdownx.blocks.details"]
|
|
153
|
+
)
|
|
154
|
+
self.assertTrue(
|
|
155
|
+
"alternate_style" in final_config["mdx_configs"]["pymdownx.blocks.tab"]
|
|
156
|
+
)
|
|
157
|
+
self.assertFalse("admonition" in final_config["markdown_extensions"])
|
|
158
|
+
self.assertFalse("pymdownx.details" in final_config["markdown_extensions"])
|
|
159
|
+
self.assertFalse("pymdownx.tabbed" in final_config["markdown_extensions"])
|
|
160
|
+
self.assertFalse("pymdownx.tabbed" in final_config["mdx_configs"])
|
|
161
|
+
|
|
162
|
+
def test_default_pymdownx(self):
|
|
163
|
+
self.plugin_collection["techdocs-core"].load_config({})
|
|
164
|
+
final_config = self.techdocscore.on_config(self.mkdocs_yaml_config)
|
|
165
|
+
|
|
166
|
+
self.assertFalse(
|
|
167
|
+
"pymdownx.blocks.admonition" in final_config["markdown_extensions"]
|
|
168
|
+
)
|
|
169
|
+
self.assertFalse(
|
|
170
|
+
"pymdownx.blocks.details" in final_config["markdown_extensions"]
|
|
171
|
+
)
|
|
172
|
+
self.assertFalse("pymdownx.blocks.tab" in final_config["markdown_extensions"])
|
|
173
|
+
self.assertFalse("pymdownx.blocks.admonition" in final_config["mdx_configs"])
|
|
174
|
+
self.assertFalse("pymdownx.blocks.details" in final_config["mdx_configs"])
|
|
175
|
+
self.assertFalse("pymdownx.blocks.tab" in final_config["mdx_configs"])
|
|
176
|
+
self.assertTrue("admonition" in final_config["markdown_extensions"])
|
|
177
|
+
self.assertTrue("pymdownx.details" in final_config["markdown_extensions"])
|
|
178
|
+
self.assertTrue("pymdownx.tabbed" in final_config["markdown_extensions"])
|
|
179
|
+
self.assertTrue(
|
|
180
|
+
"alternate_style" in final_config["mdx_configs"]["pymdownx.tabbed"]
|
|
181
|
+
)
|
|
File without changes
|
{mkdocs_techdocs_core-1.5.2 → mkdocs_techdocs_core-1.5.3}/mkdocs_techdocs_core.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|