mkdocs-techdocs-core 1.2.3__tar.gz → 1.3.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.
@@ -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
@@ -58,33 +58,30 @@ Description: # mkdocs-techdocs-core
58
58
 
59
59
  ### Testing Dependencies End-to-End
60
60
 
61
- Much of the value of this plugin lies in its dependencies, on which there are
62
- implicit dependencies upstream in the Backstage TechDocs frontend plugin. Each
63
- time you update a pinned dependency, it's important to test that generated
64
- documentation can be loaded and parsed as expected in the Backstage frontend.
65
- The recommended way to do so is the following:
66
-
67
- 1. Make the expected dependency change locally in `requirements.txt`.
68
- 2. Clone the [techdocs-container](https://github.com/backstage/techdocs-container)
69
- image and, within the cloned directory, copy the entire contents of your
70
- local version of `mkdocs-techdocs-core`, e.g. named `local-mkdocs-techdocs-core`.
71
- 3. Just before the `RUN pip install` command in `techdocs-container`'s
72
- Dockerfile, add a `COPY` command that copies the contents of your modified
73
- `mkdocs-techdocs-core` directory into the container's file system. Something
74
- like: `COPY ./local-mkdocs-techdocs-core/ /local-mkdocs-techdocs-core/`
75
- 4. Modify the `RUN pip install`... command to install an editable version of
76
- the copied local plugin, rather than the specific version. Something like...
77
- `RUN pip install --upgrade pip && pip install -e /local-mkdocs-techdocs-core`
78
- 5. Build the modified image: `docker build -t mkdocs:local-dev .`
79
- 6. Modify your local Backstage instance to use your locally built
80
- `techdocs-container` instead of using the published image by setting the
81
- following configuration:
61
+ If you have made changes to the plugin itself, or updated a dependency it's
62
+ strongly recommended to test the plugin.
63
+
64
+ To build a version of the `spotify/techdocs` docker image with your changes,
65
+ run the below script in this repository:
66
+ ```bash
67
+ ./build-e2e-image.sh
68
+ ```
69
+ _The script is only tested on OSX_
70
+
71
+ The script assumes that you have the
72
+ [image repository](https://github.com/backstage/techdocs-container) cloned in a
73
+ sibling directory to this repository (or you can specify its location).
74
+
75
+ It will build an image called `mkdocs:local-dev` including the changes you
76
+ have made locally. To test the image in backstage, edit the config (e.g.
77
+ `app-config.yaml`) with the following:
82
78
 
83
79
  ```yaml
84
80
  techdocs:
85
81
  generator:
86
82
  runIn: "docker"
87
83
  dockerImage: "mkdocs:local-dev"
84
+ pullImage: false
88
85
  ```
89
86
 
90
87
  ### Release
@@ -154,6 +151,14 @@ Description: # mkdocs-techdocs-core
154
151
 
155
152
  ### Unreleased
156
153
 
154
+ ### 1.3.1
155
+ - Bumped `pygments` to `2.17.2` which includes JSX support.
156
+
157
+ ### 1.3
158
+ - Bumped `mkdocs-material` (and its dependencies) from `9.1.3` to `9.2.7` causing a few changes:
159
+ - MkDocs dependency is now `1.5`
160
+ - `theme.palette` is now hardcoded to `{}` instead of `""` which caused some issues with some Material plugins
161
+
157
162
  ### 1.2.3
158
163
  - Bumped `pygments` to `2.16.1`, which also fixes a [vulnerability](https://github.com/advisories/GHSA-mrwq-x4v8-fh7p).
159
164
  - Update dependency `plantuml-markdown` to `3.9.2`.
@@ -50,33 +50,30 @@ black .
50
50
 
51
51
  ### Testing Dependencies End-to-End
52
52
 
53
- Much of the value of this plugin lies in its dependencies, on which there are
54
- implicit dependencies upstream in the Backstage TechDocs frontend plugin. Each
55
- time you update a pinned dependency, it's important to test that generated
56
- documentation can be loaded and parsed as expected in the Backstage frontend.
57
- The recommended way to do so is the following:
58
-
59
- 1. Make the expected dependency change locally in `requirements.txt`.
60
- 2. Clone the [techdocs-container](https://github.com/backstage/techdocs-container)
61
- image and, within the cloned directory, copy the entire contents of your
62
- local version of `mkdocs-techdocs-core`, e.g. named `local-mkdocs-techdocs-core`.
63
- 3. Just before the `RUN pip install` command in `techdocs-container`'s
64
- Dockerfile, add a `COPY` command that copies the contents of your modified
65
- `mkdocs-techdocs-core` directory into the container's file system. Something
66
- like: `COPY ./local-mkdocs-techdocs-core/ /local-mkdocs-techdocs-core/`
67
- 4. Modify the `RUN pip install`... command to install an editable version of
68
- the copied local plugin, rather than the specific version. Something like...
69
- `RUN pip install --upgrade pip && pip install -e /local-mkdocs-techdocs-core`
70
- 5. Build the modified image: `docker build -t mkdocs:local-dev .`
71
- 6. Modify your local Backstage instance to use your locally built
72
- `techdocs-container` instead of using the published image by setting the
73
- following configuration:
53
+ If you have made changes to the plugin itself, or updated a dependency it's
54
+ strongly recommended to test the plugin.
55
+
56
+ To build a version of the `spotify/techdocs` docker image with your changes,
57
+ run the below script in this repository:
58
+ ```bash
59
+ ./build-e2e-image.sh
60
+ ```
61
+ _The script is only tested on OSX_
62
+
63
+ The script assumes that you have the
64
+ [image repository](https://github.com/backstage/techdocs-container) cloned in a
65
+ sibling directory to this repository (or you can specify its location).
66
+
67
+ It will build an image called `mkdocs:local-dev` including the changes you
68
+ have made locally. To test the image in backstage, edit the config (e.g.
69
+ `app-config.yaml`) with the following:
74
70
 
75
71
  ```yaml
76
72
  techdocs:
77
73
  generator:
78
74
  runIn: "docker"
79
75
  dockerImage: "mkdocs:local-dev"
76
+ pullImage: false
80
77
  ```
81
78
 
82
79
  ### Release
@@ -146,6 +143,14 @@ We only use `material-mkdocs` as base styles because Backstage also uses the `Ma
146
143
 
147
144
  ### Unreleased
148
145
 
146
+ ### 1.3.1
147
+ - Bumped `pygments` to `2.17.2` which includes JSX support.
148
+
149
+ ### 1.3
150
+ - Bumped `mkdocs-material` (and its dependencies) from `9.1.3` to `9.2.7` causing a few changes:
151
+ - MkDocs dependency is now `1.5`
152
+ - `theme.palette` is now hardcoded to `{}` instead of `""` which caused some issues with some Material plugins
153
+
149
154
  ### 1.2.3
150
155
  - Bumped `pygments` to `2.16.1`, which also fixes a [vulnerability](https://github.com/advisories/GHSA-mrwq-x4v8-fh7p).
151
156
  - Update dependency `plantuml-markdown` to `3.9.2`.
@@ -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
@@ -58,33 +58,30 @@ Description: # mkdocs-techdocs-core
58
58
 
59
59
  ### Testing Dependencies End-to-End
60
60
 
61
- Much of the value of this plugin lies in its dependencies, on which there are
62
- implicit dependencies upstream in the Backstage TechDocs frontend plugin. Each
63
- time you update a pinned dependency, it's important to test that generated
64
- documentation can be loaded and parsed as expected in the Backstage frontend.
65
- The recommended way to do so is the following:
66
-
67
- 1. Make the expected dependency change locally in `requirements.txt`.
68
- 2. Clone the [techdocs-container](https://github.com/backstage/techdocs-container)
69
- image and, within the cloned directory, copy the entire contents of your
70
- local version of `mkdocs-techdocs-core`, e.g. named `local-mkdocs-techdocs-core`.
71
- 3. Just before the `RUN pip install` command in `techdocs-container`'s
72
- Dockerfile, add a `COPY` command that copies the contents of your modified
73
- `mkdocs-techdocs-core` directory into the container's file system. Something
74
- like: `COPY ./local-mkdocs-techdocs-core/ /local-mkdocs-techdocs-core/`
75
- 4. Modify the `RUN pip install`... command to install an editable version of
76
- the copied local plugin, rather than the specific version. Something like...
77
- `RUN pip install --upgrade pip && pip install -e /local-mkdocs-techdocs-core`
78
- 5. Build the modified image: `docker build -t mkdocs:local-dev .`
79
- 6. Modify your local Backstage instance to use your locally built
80
- `techdocs-container` instead of using the published image by setting the
81
- following configuration:
61
+ If you have made changes to the plugin itself, or updated a dependency it's
62
+ strongly recommended to test the plugin.
63
+
64
+ To build a version of the `spotify/techdocs` docker image with your changes,
65
+ run the below script in this repository:
66
+ ```bash
67
+ ./build-e2e-image.sh
68
+ ```
69
+ _The script is only tested on OSX_
70
+
71
+ The script assumes that you have the
72
+ [image repository](https://github.com/backstage/techdocs-container) cloned in a
73
+ sibling directory to this repository (or you can specify its location).
74
+
75
+ It will build an image called `mkdocs:local-dev` including the changes you
76
+ have made locally. To test the image in backstage, edit the config (e.g.
77
+ `app-config.yaml`) with the following:
82
78
 
83
79
  ```yaml
84
80
  techdocs:
85
81
  generator:
86
82
  runIn: "docker"
87
83
  dockerImage: "mkdocs:local-dev"
84
+ pullImage: false
88
85
  ```
89
86
 
90
87
  ### Release
@@ -154,6 +151,14 @@ Description: # mkdocs-techdocs-core
154
151
 
155
152
  ### Unreleased
156
153
 
154
+ ### 1.3.1
155
+ - Bumped `pygments` to `2.17.2` which includes JSX support.
156
+
157
+ ### 1.3
158
+ - Bumped `mkdocs-material` (and its dependencies) from `9.1.3` to `9.2.7` causing a few changes:
159
+ - MkDocs dependency is now `1.5`
160
+ - `theme.palette` is now hardcoded to `{}` instead of `""` which caused some issues with some Material plugins
161
+
157
162
  ### 1.2.3
158
163
  - Bumped `pygments` to `2.16.1`, which also fixes a [vulnerability](https://github.com/advisories/GHSA-mrwq-x4v8-fh7p).
159
164
  - Update dependency `plantuml-markdown` to `3.9.2`.
@@ -0,0 +1,9 @@
1
+ mkdocs>=1.5
2
+ Markdown<3.4,>=3.2
3
+ mkdocs-material==9.2.7
4
+ markdown_inline_graphviz_extension==1.1.2
5
+ mkdocs-monorepo-plugin==1.0.5
6
+ plantuml-markdown==3.9.2
7
+ mdx_truly_sane_lists==1.3
8
+ pygments==2.17.2
9
+ pymdown-extensions==10.2
@@ -27,7 +27,7 @@ with open("requirements.txt") as f:
27
27
 
28
28
  setup(
29
29
  name="mkdocs-techdocs-core",
30
- version="1.2.3",
30
+ version="1.3.1",
31
31
  description="The core MkDocs plugin used by Backstage's TechDocs as a wrapper around "
32
32
  "multiple MkDocs plugins and Python Markdown extensions",
33
33
  long_description=long_description,
@@ -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
- mkdocs>=1.2.2
2
- Markdown<3.4,>=3.2
3
- mkdocs-material==9.1.3
4
- mkdocs-monorepo-plugin==1.0.5
5
- plantuml-markdown==3.9.2
6
- markdown_inline_graphviz_extension==1.1.1
7
- mdx_truly_sane_lists==1.3
8
- pygments==2.16.1
9
- pymdown-extensions==10.0.1