mkdocs-techdocs-core 1.2.3__py3-none-any.whl → 1.3.1__py3-none-any.whl

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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mkdocs-techdocs-core
3
- Version: 1.2.3
3
+ Version: 1.3.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
  Home-page: https://github.com/backstage/mkdocs-techdocs-core
6
6
  Author: TechDocs Core
@@ -17,15 +17,15 @@ Classifier: Programming Language :: Python :: 3 :: Only
17
17
  Classifier: Programming Language :: Python :: 3.7
18
18
  Requires-Python: >=3.7
19
19
  Description-Content-Type: text/markdown
20
- Requires-Dist: mkdocs >=1.2.2
20
+ Requires-Dist: mkdocs >=1.5
21
21
  Requires-Dist: Markdown <3.4,>=3.2
22
- Requires-Dist: mkdocs-material ==9.1.3
22
+ Requires-Dist: mkdocs-material ==9.2.7
23
+ Requires-Dist: markdown-inline-graphviz-extension ==1.1.2
23
24
  Requires-Dist: mkdocs-monorepo-plugin ==1.0.5
24
25
  Requires-Dist: plantuml-markdown ==3.9.2
25
- Requires-Dist: markdown-inline-graphviz-extension ==1.1.1
26
26
  Requires-Dist: mdx-truly-sane-lists ==1.3
27
- Requires-Dist: pygments ==2.16.1
28
- Requires-Dist: pymdown-extensions ==10.0.1
27
+ Requires-Dist: pygments ==2.17.2
28
+ Requires-Dist: pymdown-extensions ==10.2
29
29
 
30
30
  # mkdocs-techdocs-core
31
31
 
@@ -79,33 +79,30 @@ black .
79
79
 
80
80
  ### Testing Dependencies End-to-End
81
81
 
82
- Much of the value of this plugin lies in its dependencies, on which there are
83
- implicit dependencies upstream in the Backstage TechDocs frontend plugin. Each
84
- time you update a pinned dependency, it's important to test that generated
85
- documentation can be loaded and parsed as expected in the Backstage frontend.
86
- The recommended way to do so is the following:
87
-
88
- 1. Make the expected dependency change locally in `requirements.txt`.
89
- 2. Clone the [techdocs-container](https://github.com/backstage/techdocs-container)
90
- image and, within the cloned directory, copy the entire contents of your
91
- local version of `mkdocs-techdocs-core`, e.g. named `local-mkdocs-techdocs-core`.
92
- 3. Just before the `RUN pip install` command in `techdocs-container`'s
93
- Dockerfile, add a `COPY` command that copies the contents of your modified
94
- `mkdocs-techdocs-core` directory into the container's file system. Something
95
- like: `COPY ./local-mkdocs-techdocs-core/ /local-mkdocs-techdocs-core/`
96
- 4. Modify the `RUN pip install`... command to install an editable version of
97
- the copied local plugin, rather than the specific version. Something like...
98
- `RUN pip install --upgrade pip && pip install -e /local-mkdocs-techdocs-core`
99
- 5. Build the modified image: `docker build -t mkdocs:local-dev .`
100
- 6. Modify your local Backstage instance to use your locally built
101
- `techdocs-container` instead of using the published image by setting the
102
- following configuration:
82
+ If you have made changes to the plugin itself, or updated a dependency it's
83
+ strongly recommended to test the plugin.
84
+
85
+ To build a version of the `spotify/techdocs` docker image with your changes,
86
+ run the below script in this repository:
87
+ ```bash
88
+ ./build-e2e-image.sh
89
+ ```
90
+ _The script is only tested on OSX_
91
+
92
+ The script assumes that you have the
93
+ [image repository](https://github.com/backstage/techdocs-container) cloned in a
94
+ sibling directory to this repository (or you can specify its location).
95
+
96
+ It will build an image called `mkdocs:local-dev` including the changes you
97
+ have made locally. To test the image in backstage, edit the config (e.g.
98
+ `app-config.yaml`) with the following:
103
99
 
104
100
  ```yaml
105
101
  techdocs:
106
102
  generator:
107
103
  runIn: "docker"
108
104
  dockerImage: "mkdocs:local-dev"
105
+ pullImage: false
109
106
  ```
110
107
 
111
108
  ### Release
@@ -175,6 +172,14 @@ We only use `material-mkdocs` as base styles because Backstage also uses the `Ma
175
172
 
176
173
  ### Unreleased
177
174
 
175
+ ### 1.3.1
176
+ - Bumped `pygments` to `2.17.2` which includes JSX support.
177
+
178
+ ### 1.3
179
+ - Bumped `mkdocs-material` (and its dependencies) from `9.1.3` to `9.2.7` causing a few changes:
180
+ - MkDocs dependency is now `1.5`
181
+ - `theme.palette` is now hardcoded to `{}` instead of `""` which caused some issues with some Material plugins
182
+
178
183
  ### 1.2.3
179
184
  - Bumped `pygments` to `2.16.1`, which also fixes a [vulnerability](https://github.com/advisories/GHSA-mrwq-x4v8-fh7p).
180
185
  - Update dependency `plantuml-markdown` to `3.9.2`.
@@ -0,0 +1,9 @@
1
+ src/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ src/core.py,sha256=-s1muw-AJB6jCtl6ukf5H8tXaGLJ2OTN2ErfyVxBEvo,5621
3
+ src/test_core.py,sha256=UN8dKD3vEaZp7YB6JE-13QDc3Fuh64KQj_brdk926Bg,5323
4
+ mkdocs_techdocs_core-1.3.1.dist-info/LICENSE,sha256=eQI8sD8vCx0f8ZQg0xdn3DfPxUcbJowsI_uJQk8B4WI,11354
5
+ mkdocs_techdocs_core-1.3.1.dist-info/METADATA,sha256=1me0-D4y-QVFomDaOzni0A10U8QIUTXlVsNFuNydq8s,16798
6
+ mkdocs_techdocs_core-1.3.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
7
+ mkdocs_techdocs_core-1.3.1.dist-info/entry_points.txt,sha256=9757aJlPhODN46FiNvcJyTcFo1TbPJ2E6QLTvBOz-6M,56
8
+ mkdocs_techdocs_core-1.3.1.dist-info/top_level.txt,sha256=74rtVfumQlgAPzR5_2CgYN24MB0XARCg0t-gzk6gTrM,4
9
+ mkdocs_techdocs_core-1.3.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.2)
2
+ Generator: bdist_wheel (0.42.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
src/core.py CHANGED
@@ -70,7 +70,7 @@ class TechDocsCore(BasePlugin):
70
70
  config["theme"]["features"].append("navigation.footer")
71
71
  config["theme"]["features"].append("content.action.edit")
72
72
 
73
- config["theme"]["palette"] = ""
73
+ config["theme"]["palette"] = {}
74
74
 
75
75
  config["theme"].static_templates.update({"techdocs_metadata.json"})
76
76
  config["theme"].dirs.append(self.tmp_dir_techdocs_theme.name)
@@ -1,9 +0,0 @@
1
- src/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- src/core.py,sha256=G2UxagE3R3tlzprCZtX4kJKEMP1i-wCIFCLtzA8IG94,5621
3
- src/test_core.py,sha256=UN8dKD3vEaZp7YB6JE-13QDc3Fuh64KQj_brdk926Bg,5323
4
- mkdocs_techdocs_core-1.2.3.dist-info/LICENSE,sha256=eQI8sD8vCx0f8ZQg0xdn3DfPxUcbJowsI_uJQk8B4WI,11354
5
- mkdocs_techdocs_core-1.2.3.dist-info/METADATA,sha256=kS--zaV5yU5UI8hDzipvbIxp-oQqvQJGHK2cZkHRtnE,17219
6
- mkdocs_techdocs_core-1.2.3.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
7
- mkdocs_techdocs_core-1.2.3.dist-info/entry_points.txt,sha256=9757aJlPhODN46FiNvcJyTcFo1TbPJ2E6QLTvBOz-6M,56
8
- mkdocs_techdocs_core-1.2.3.dist-info/top_level.txt,sha256=74rtVfumQlgAPzR5_2CgYN24MB0XARCg0t-gzk6gTrM,4
9
- mkdocs_techdocs_core-1.2.3.dist-info/RECORD,,