mkdocs-techdocs-core 1.6.2__tar.gz → 1.7.1__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.6.2 → mkdocs_techdocs_core-1.7.1}/PKG-INFO +11 -9
- {mkdocs_techdocs_core-1.6.2 → mkdocs_techdocs_core-1.7.1}/README.md +4 -3
- {mkdocs_techdocs_core-1.6.2 → mkdocs_techdocs_core-1.7.1}/mkdocs_techdocs_core.egg-info/PKG-INFO +11 -9
- mkdocs_techdocs_core-1.7.1/mkdocs_techdocs_core.egg-info/requires.txt +12 -0
- {mkdocs_techdocs_core-1.6.2 → mkdocs_techdocs_core-1.7.1}/pyproject.toml +1 -1
- {mkdocs_techdocs_core-1.6.2 → mkdocs_techdocs_core-1.7.1}/requirements.txt +10 -6
- {mkdocs_techdocs_core-1.6.2 → mkdocs_techdocs_core-1.7.1}/techdocs_core/core.py +4 -0
- {mkdocs_techdocs_core-1.6.2 → mkdocs_techdocs_core-1.7.1}/techdocs_core/test_core.py +12 -0
- mkdocs_techdocs_core-1.6.2/mkdocs_techdocs_core.egg-info/requires.txt +0 -11
- {mkdocs_techdocs_core-1.6.2 → mkdocs_techdocs_core-1.7.1}/LICENSE +0 -0
- {mkdocs_techdocs_core-1.6.2 → mkdocs_techdocs_core-1.7.1}/mkdocs_techdocs_core.egg-info/SOURCES.txt +0 -0
- {mkdocs_techdocs_core-1.6.2 → mkdocs_techdocs_core-1.7.1}/mkdocs_techdocs_core.egg-info/dependency_links.txt +0 -0
- {mkdocs_techdocs_core-1.6.2 → mkdocs_techdocs_core-1.7.1}/mkdocs_techdocs_core.egg-info/entry_points.txt +0 -0
- {mkdocs_techdocs_core-1.6.2 → mkdocs_techdocs_core-1.7.1}/mkdocs_techdocs_core.egg-info/top_level.txt +0 -0
- {mkdocs_techdocs_core-1.6.2 → mkdocs_techdocs_core-1.7.1}/setup.cfg +0 -0
- {mkdocs_techdocs_core-1.6.2 → mkdocs_techdocs_core-1.7.1}/techdocs_core/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mkdocs-techdocs-core
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.7.1
|
|
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
|
Author-email: TechDocs Core <protean@spotify.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -20,15 +20,16 @@ Description-Content-Type: text/markdown
|
|
|
20
20
|
License-File: LICENSE
|
|
21
21
|
Requires-Dist: mkdocs>=1.6
|
|
22
22
|
Requires-Dist: Markdown<3.11,>=3.2
|
|
23
|
-
Requires-Dist: mkdocs-material==9.7.
|
|
23
|
+
Requires-Dist: mkdocs-material==9.7.7
|
|
24
24
|
Requires-Dist: markdown-graphviz-inline==1.1.3
|
|
25
|
+
Requires-Dist: mkdocs-github-admonitions-plugin==0.1.1
|
|
25
26
|
Requires-Dist: mkdocs-monorepo-plugin==1.1.2
|
|
26
|
-
Requires-Dist: plantuml-markdown==3.11.
|
|
27
|
+
Requires-Dist: plantuml-markdown==3.11.2
|
|
27
28
|
Requires-Dist: mdx_truly_sane_lists==1.3
|
|
28
|
-
Requires-Dist: pymdown-extensions==
|
|
29
|
-
Requires-Dist: pygments==2.
|
|
29
|
+
Requires-Dist: pymdown-extensions==11.0.1
|
|
30
|
+
Requires-Dist: pygments==2.21.0
|
|
30
31
|
Requires-Dist: mkdocs-redirects==1.2.3
|
|
31
|
-
Requires-Dist: click
|
|
32
|
+
Requires-Dist: click!=8.3.*
|
|
32
33
|
Dynamic: license-file
|
|
33
34
|
|
|
34
35
|
# mkdocs-techdocs-core
|
|
@@ -39,7 +40,7 @@ This is the base [Mkdocs](https://mkdocs.org) plugin used when using Mkdocs with
|
|
|
39
40
|
|
|
40
41
|
## Usage
|
|
41
42
|
|
|
42
|
-
> Requires Python version >= 3.
|
|
43
|
+
> Requires Python version >= 3.9
|
|
43
44
|
|
|
44
45
|
```bash
|
|
45
46
|
$ pip install mkdocs-techdocs-core
|
|
@@ -144,6 +145,7 @@ TechDocs Core plugin:
|
|
|
144
145
|
|
|
145
146
|
- [search](https://www.mkdocs.org/user-guide/configuration/#search): A search plugin is provided by default with MkDocs which uses [lunr.js](https://lunrjs.com/) as a search engine.
|
|
146
147
|
- [mkdocs-monorepo-plugin](https://github.com/backstage/mkdocs-monorepo-plugin): This plugin enables you to build multiple sets of documentation in a single MkDocs project. It is designed to address writing documentation in Spotify's largest and most business-critical codebases (typically monoliths or monorepos).
|
|
148
|
+
- [gh-admonitions](https://github.com/PGijsbers/admonitions): This plugin converts GitHub alert syntax, such as `> [!NOTE]`, `> [!TIP]`, `> [!IMPORTANT]`, `> [!WARNING]`, and `> [!CAUTION]`, to MkDocs Material admonitions.
|
|
147
149
|
|
|
148
150
|
**Extensions**:
|
|
149
151
|
|
|
@@ -166,8 +168,8 @@ TechDocs Core plugin:
|
|
|
166
168
|
- tabbed: Tabbed allows for tabbed Markdown content.
|
|
167
169
|
- tasklist: Tasklist allows inserting lists with check boxes.
|
|
168
170
|
- tilde: Tilde is syntactically built around the ~ character. It adds support for inserting subscripts and adds an easy way to place text in a <_del_> tag.
|
|
169
|
-
- [markdown_inline_graphviz](https://pypi.org/project/markdown-inline
|
|
170
|
-
Activate the
|
|
171
|
+
- [markdown_inline_graphviz](https://pypi.org/project/markdown-graphviz-inline/): A Python Markdown extension replaces inline Graphviz definitions with inline SVGs or PNGs.
|
|
172
|
+
Activate the markdown_inline_graphviz extension using the [usage instructions](https://github.com/backstage/markdown-inline-graphviz#usage).
|
|
171
173
|
|
|
172
174
|
- [plantuml_markdown](https://pypi.org/project/plantuml-markdown/): This plugin implements a block extension which can be used to specify a PlantUML diagram which will be converted into an image and inserted in the document.
|
|
173
175
|
|
|
@@ -6,7 +6,7 @@ This is the base [Mkdocs](https://mkdocs.org) plugin used when using Mkdocs with
|
|
|
6
6
|
|
|
7
7
|
## Usage
|
|
8
8
|
|
|
9
|
-
> Requires Python version >= 3.
|
|
9
|
+
> Requires Python version >= 3.9
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
12
|
$ pip install mkdocs-techdocs-core
|
|
@@ -111,6 +111,7 @@ TechDocs Core plugin:
|
|
|
111
111
|
|
|
112
112
|
- [search](https://www.mkdocs.org/user-guide/configuration/#search): A search plugin is provided by default with MkDocs which uses [lunr.js](https://lunrjs.com/) as a search engine.
|
|
113
113
|
- [mkdocs-monorepo-plugin](https://github.com/backstage/mkdocs-monorepo-plugin): This plugin enables you to build multiple sets of documentation in a single MkDocs project. It is designed to address writing documentation in Spotify's largest and most business-critical codebases (typically monoliths or monorepos).
|
|
114
|
+
- [gh-admonitions](https://github.com/PGijsbers/admonitions): This plugin converts GitHub alert syntax, such as `> [!NOTE]`, `> [!TIP]`, `> [!IMPORTANT]`, `> [!WARNING]`, and `> [!CAUTION]`, to MkDocs Material admonitions.
|
|
114
115
|
|
|
115
116
|
**Extensions**:
|
|
116
117
|
|
|
@@ -133,8 +134,8 @@ TechDocs Core plugin:
|
|
|
133
134
|
- tabbed: Tabbed allows for tabbed Markdown content.
|
|
134
135
|
- tasklist: Tasklist allows inserting lists with check boxes.
|
|
135
136
|
- tilde: Tilde is syntactically built around the ~ character. It adds support for inserting subscripts and adds an easy way to place text in a <_del_> tag.
|
|
136
|
-
- [markdown_inline_graphviz](https://pypi.org/project/markdown-inline
|
|
137
|
-
Activate the
|
|
137
|
+
- [markdown_inline_graphviz](https://pypi.org/project/markdown-graphviz-inline/): A Python Markdown extension replaces inline Graphviz definitions with inline SVGs or PNGs.
|
|
138
|
+
Activate the markdown_inline_graphviz extension using the [usage instructions](https://github.com/backstage/markdown-inline-graphviz#usage).
|
|
138
139
|
|
|
139
140
|
- [plantuml_markdown](https://pypi.org/project/plantuml-markdown/): This plugin implements a block extension which can be used to specify a PlantUML diagram which will be converted into an image and inserted in the document.
|
|
140
141
|
|
{mkdocs_techdocs_core-1.6.2 → mkdocs_techdocs_core-1.7.1}/mkdocs_techdocs_core.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mkdocs-techdocs-core
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.7.1
|
|
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
|
Author-email: TechDocs Core <protean@spotify.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -20,15 +20,16 @@ Description-Content-Type: text/markdown
|
|
|
20
20
|
License-File: LICENSE
|
|
21
21
|
Requires-Dist: mkdocs>=1.6
|
|
22
22
|
Requires-Dist: Markdown<3.11,>=3.2
|
|
23
|
-
Requires-Dist: mkdocs-material==9.7.
|
|
23
|
+
Requires-Dist: mkdocs-material==9.7.7
|
|
24
24
|
Requires-Dist: markdown-graphviz-inline==1.1.3
|
|
25
|
+
Requires-Dist: mkdocs-github-admonitions-plugin==0.1.1
|
|
25
26
|
Requires-Dist: mkdocs-monorepo-plugin==1.1.2
|
|
26
|
-
Requires-Dist: plantuml-markdown==3.11.
|
|
27
|
+
Requires-Dist: plantuml-markdown==3.11.2
|
|
27
28
|
Requires-Dist: mdx_truly_sane_lists==1.3
|
|
28
|
-
Requires-Dist: pymdown-extensions==
|
|
29
|
-
Requires-Dist: pygments==2.
|
|
29
|
+
Requires-Dist: pymdown-extensions==11.0.1
|
|
30
|
+
Requires-Dist: pygments==2.21.0
|
|
30
31
|
Requires-Dist: mkdocs-redirects==1.2.3
|
|
31
|
-
Requires-Dist: click
|
|
32
|
+
Requires-Dist: click!=8.3.*
|
|
32
33
|
Dynamic: license-file
|
|
33
34
|
|
|
34
35
|
# mkdocs-techdocs-core
|
|
@@ -39,7 +40,7 @@ This is the base [Mkdocs](https://mkdocs.org) plugin used when using Mkdocs with
|
|
|
39
40
|
|
|
40
41
|
## Usage
|
|
41
42
|
|
|
42
|
-
> Requires Python version >= 3.
|
|
43
|
+
> Requires Python version >= 3.9
|
|
43
44
|
|
|
44
45
|
```bash
|
|
45
46
|
$ pip install mkdocs-techdocs-core
|
|
@@ -144,6 +145,7 @@ TechDocs Core plugin:
|
|
|
144
145
|
|
|
145
146
|
- [search](https://www.mkdocs.org/user-guide/configuration/#search): A search plugin is provided by default with MkDocs which uses [lunr.js](https://lunrjs.com/) as a search engine.
|
|
146
147
|
- [mkdocs-monorepo-plugin](https://github.com/backstage/mkdocs-monorepo-plugin): This plugin enables you to build multiple sets of documentation in a single MkDocs project. It is designed to address writing documentation in Spotify's largest and most business-critical codebases (typically monoliths or monorepos).
|
|
148
|
+
- [gh-admonitions](https://github.com/PGijsbers/admonitions): This plugin converts GitHub alert syntax, such as `> [!NOTE]`, `> [!TIP]`, `> [!IMPORTANT]`, `> [!WARNING]`, and `> [!CAUTION]`, to MkDocs Material admonitions.
|
|
147
149
|
|
|
148
150
|
**Extensions**:
|
|
149
151
|
|
|
@@ -166,8 +168,8 @@ TechDocs Core plugin:
|
|
|
166
168
|
- tabbed: Tabbed allows for tabbed Markdown content.
|
|
167
169
|
- tasklist: Tasklist allows inserting lists with check boxes.
|
|
168
170
|
- tilde: Tilde is syntactically built around the ~ character. It adds support for inserting subscripts and adds an easy way to place text in a <_del_> tag.
|
|
169
|
-
- [markdown_inline_graphviz](https://pypi.org/project/markdown-inline
|
|
170
|
-
Activate the
|
|
171
|
+
- [markdown_inline_graphviz](https://pypi.org/project/markdown-graphviz-inline/): A Python Markdown extension replaces inline Graphviz definitions with inline SVGs or PNGs.
|
|
172
|
+
Activate the markdown_inline_graphviz extension using the [usage instructions](https://github.com/backstage/markdown-inline-graphviz#usage).
|
|
171
173
|
|
|
172
174
|
- [plantuml_markdown](https://pypi.org/project/plantuml-markdown/): This plugin implements a block extension which can be used to specify a PlantUML diagram which will be converted into an image and inserted in the document.
|
|
173
175
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
mkdocs>=1.6
|
|
2
|
+
Markdown<3.11,>=3.2
|
|
3
|
+
mkdocs-material==9.7.7
|
|
4
|
+
markdown-graphviz-inline==1.1.3
|
|
5
|
+
mkdocs-github-admonitions-plugin==0.1.1
|
|
6
|
+
mkdocs-monorepo-plugin==1.1.2
|
|
7
|
+
plantuml-markdown==3.11.2
|
|
8
|
+
mdx_truly_sane_lists==1.3
|
|
9
|
+
pymdown-extensions==11.0.1
|
|
10
|
+
pygments==2.21.0
|
|
11
|
+
mkdocs-redirects==1.2.3
|
|
12
|
+
click!=8.3.*
|
|
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
|
|
|
5
5
|
[project]
|
|
6
6
|
|
|
7
7
|
name = "mkdocs-techdocs-core"
|
|
8
|
-
version = "1.
|
|
8
|
+
version = "1.7.1"
|
|
9
9
|
description = """The core MkDocs plugin used by Backstage's TechDocs as a wrapper around multiple MkDocs plugins and Python Markdown extensions"""
|
|
10
10
|
readme = "README.md"
|
|
11
11
|
requires-python = ">=3.9"
|
|
@@ -9,18 +9,22 @@ Markdown>=3.2,<3.11
|
|
|
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.7.
|
|
12
|
+
mkdocs-material==9.7.7
|
|
13
13
|
markdown-graphviz-inline==1.1.3
|
|
14
|
+
mkdocs-github-admonitions-plugin==0.1.1
|
|
14
15
|
mkdocs-monorepo-plugin==1.1.2
|
|
15
|
-
plantuml-markdown==3.11.
|
|
16
|
+
plantuml-markdown==3.11.2
|
|
16
17
|
mdx_truly_sane_lists==1.3
|
|
17
|
-
pymdown-extensions==
|
|
18
|
-
pygments==2.
|
|
18
|
+
pymdown-extensions==11.0.1
|
|
19
|
+
pygments==2.21.0
|
|
19
20
|
mkdocs-redirects==1.2.3
|
|
20
21
|
|
|
21
22
|
# The following are temporary dependencies that are only necessary to work
|
|
22
23
|
# around incompatible/conflicting underlying dependencies. Each dependency
|
|
23
24
|
# should include a comment explaining why it is needed, and under what
|
|
24
25
|
# circumstances it can be removed in the future.
|
|
25
|
-
#
|
|
26
|
-
|
|
26
|
+
# Exclude click 8.3.* which broke mkdocs serve autoreload (fixed in 8.4.0).
|
|
27
|
+
# Other bounds are inherited from transitive deps (e.g. mkdocs).
|
|
28
|
+
# https://github.com/squidfunk/mkdocs-material/issues/8478
|
|
29
|
+
# https://github.com/pallets/click/issues/3403
|
|
30
|
+
click!=8.3.*
|
|
@@ -22,6 +22,7 @@ from mkdocs.config import Config, config_options
|
|
|
22
22
|
from mkdocs.plugins import BasePlugin
|
|
23
23
|
from mkdocs.theme import Theme
|
|
24
24
|
from mkdocs.contrib.search import SearchPlugin
|
|
25
|
+
from admonitions.admonition import AdmonitionConverter
|
|
25
26
|
from material.plugins.search.plugin import SearchPlugin as MaterialSearchPlugin
|
|
26
27
|
from mkdocs_monorepo_plugin.plugin import MonorepoPlugin
|
|
27
28
|
from pymdownx.emoji import to_svg
|
|
@@ -95,8 +96,11 @@ class TechDocsCore(BasePlugin[TechDocsCoreConfig]):
|
|
|
95
96
|
|
|
96
97
|
monorepo_plugin = MonorepoPlugin()
|
|
97
98
|
monorepo_plugin.load_config({})
|
|
99
|
+
gh_admonitions_plugin = AdmonitionConverter()
|
|
100
|
+
gh_admonitions_plugin.load_config({})
|
|
98
101
|
config["plugins"]["search"] = search_plugin
|
|
99
102
|
config["plugins"]["monorepo"] = monorepo_plugin
|
|
103
|
+
config["plugins"]["gh-admonitions"] = gh_admonitions_plugin
|
|
100
104
|
|
|
101
105
|
# Markdown Extensions
|
|
102
106
|
if "markdown_extensions" not in config:
|
|
@@ -129,6 +129,18 @@ class TestTechDocsCore(unittest.TestCase):
|
|
|
129
129
|
final_config["plugins"]["search"].__module__, "mkdocs.contrib.search"
|
|
130
130
|
)
|
|
131
131
|
|
|
132
|
+
def test_gh_admonitions(self):
|
|
133
|
+
final_config = self.techdocscore.on_config(self.techdocscore.config)
|
|
134
|
+
|
|
135
|
+
self.assertEqual(
|
|
136
|
+
final_config["plugins"]["gh-admonitions"].__module__,
|
|
137
|
+
"admonitions.admonition",
|
|
138
|
+
)
|
|
139
|
+
self.assertEqual(
|
|
140
|
+
final_config["plugins"]["gh-admonitions"].__class__.__name__,
|
|
141
|
+
"AdmonitionConverter",
|
|
142
|
+
)
|
|
143
|
+
|
|
132
144
|
def test_pymdownx_blocks(self):
|
|
133
145
|
self.techdocscore.config["use_pymdownx_blocks"] = True
|
|
134
146
|
final_config = self.techdocscore.on_config(self.techdocscore.config)
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
mkdocs>=1.6
|
|
2
|
-
Markdown<3.11,>=3.2
|
|
3
|
-
mkdocs-material==9.7.6
|
|
4
|
-
markdown-graphviz-inline==1.1.3
|
|
5
|
-
mkdocs-monorepo-plugin==1.1.2
|
|
6
|
-
plantuml-markdown==3.11.1
|
|
7
|
-
mdx_truly_sane_lists==1.3
|
|
8
|
-
pymdown-extensions==10.21.2
|
|
9
|
-
pygments==2.20.0
|
|
10
|
-
mkdocs-redirects==1.2.3
|
|
11
|
-
click<=8.3.2
|
|
File without changes
|
{mkdocs_techdocs_core-1.6.2 → mkdocs_techdocs_core-1.7.1}/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
|