mkdocs-placeholder-plugin 0.5.2.dev1__tar.gz → 0.5.2.dev3__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_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/PKG-INFO +8 -4
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/README.md +7 -3
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/pyproject.toml +8 -2
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/assets/__init__.py +6 -2
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/LICENSE +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/__init__.py +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/assets/placeholder-data.js +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/assets/placeholder.min.js +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/assets/placeholder.min.js.map +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/generic/__init__.py +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/generic/config/__init__.py +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/generic/config/configuration.py +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/generic/config/parser_utils.py +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/generic/config/placeholder.py +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/generic/config/validator.py +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/generic/generic_style.py +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/generic/html_tag_handler.py +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/generic/html_tag_parser.py +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/generic/json_generator.py +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/generic/page_processor.py +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/generic/static/__init__.py +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/generic/static/input_elements.py +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/generic/static/placeholder_replacer.py +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/generic/static/table_generator.py +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/generic/static/table_replacer.py +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/generic/validators/__init__.py +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/generic/validators/files.py +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/generic/validators/internet.py +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/generic/validators/ip_address.py +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/generic/validators/network.py +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/mkdocs/__init__.py +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/mkdocs/plugin.py +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/mkdocs/plugin_config.py +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/mkdocs/style.py +0 -0
- {mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/src/mkdocs_placeholder_plugin/mkdocs/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: mkdocs-placeholder-plugin
|
|
3
|
-
Version: 0.5.2.
|
|
3
|
+
Version: 0.5.2.dev3
|
|
4
4
|
Summary: Add dynamic placeholders to your mkdocs page
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: six-two
|
|
@@ -211,8 +211,12 @@ This is just for me :)
|
|
|
211
211
|
3. Update version number in `./pyproject.toml` and `typescript/src/api.ts`.
|
|
212
212
|
4. Run `./build.sh` to compile the latest JavaScript code and test that it works. **`poetry build` will only build the latest Python code,** and incompatibilities between Python and JS code can break the release.
|
|
213
213
|
4. Disable `debug_javascript` in `placeholder-plugin.yaml`.
|
|
214
|
-
5. Build and update package
|
|
215
|
-
|
|
214
|
+
5. Build and update package:
|
|
215
|
+
```bash
|
|
216
|
+
poetry build
|
|
217
|
+
poetry publish
|
|
218
|
+
```
|
|
219
|
+
6. Create a commit for the release (`release: Version 0.X.Y`) and push it.
|
|
216
220
|
7. Add a tag named `0.X.Y`:
|
|
217
221
|
```bash
|
|
218
222
|
git tag 0.X.Y
|
|
@@ -224,7 +228,7 @@ This is just for me :)
|
|
|
224
228
|
git push --tags origin latest-release
|
|
225
229
|
```
|
|
226
230
|
|
|
227
|
-
### Updating python dependencies
|
|
231
|
+
### @TODO: Update - Updating python dependencies
|
|
228
232
|
|
|
229
233
|
If you don't have them, install `pip-tools`:
|
|
230
234
|
```bash
|
|
@@ -193,8 +193,12 @@ This is just for me :)
|
|
|
193
193
|
3. Update version number in `./pyproject.toml` and `typescript/src/api.ts`.
|
|
194
194
|
4. Run `./build.sh` to compile the latest JavaScript code and test that it works. **`poetry build` will only build the latest Python code,** and incompatibilities between Python and JS code can break the release.
|
|
195
195
|
4. Disable `debug_javascript` in `placeholder-plugin.yaml`.
|
|
196
|
-
5. Build and update package
|
|
197
|
-
|
|
196
|
+
5. Build and update package:
|
|
197
|
+
```bash
|
|
198
|
+
poetry build
|
|
199
|
+
poetry publish
|
|
200
|
+
```
|
|
201
|
+
6. Create a commit for the release (`release: Version 0.X.Y`) and push it.
|
|
198
202
|
7. Add a tag named `0.X.Y`:
|
|
199
203
|
```bash
|
|
200
204
|
git tag 0.X.Y
|
|
@@ -206,7 +210,7 @@ This is just for me :)
|
|
|
206
210
|
git push --tags origin latest-release
|
|
207
211
|
```
|
|
208
212
|
|
|
209
|
-
### Updating python dependencies
|
|
213
|
+
### @TODO: Update - Updating python dependencies
|
|
210
214
|
|
|
211
215
|
If you don't have them, install `pip-tools`:
|
|
212
216
|
```bash
|
{mkdocs_placeholder_plugin-0.5.2.dev1 → mkdocs_placeholder_plugin-0.5.2.dev3}/pyproject.toml
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "mkdocs-placeholder-plugin"
|
|
3
|
-
version = "0.5.2.
|
|
3
|
+
version = "0.5.2.dev3"
|
|
4
4
|
description = "Add dynamic placeholders to your mkdocs page"
|
|
5
5
|
authors = [
|
|
6
6
|
{name = "six-two",email = "pip@six-two.dev"}
|
|
@@ -20,7 +20,13 @@ requires = ["poetry-core>=2.0.0,<3.0.0"]
|
|
|
20
20
|
build-backend = "poetry.core.masonry.api"
|
|
21
21
|
|
|
22
22
|
[tool.poetry]
|
|
23
|
-
include = [
|
|
23
|
+
include = [
|
|
24
|
+
{ path = "src/mkdocs_placeholder_plugin/assets/placeholder-data.js", format = ["sdist", "wheel"] },
|
|
25
|
+
{ path = "src/mkdocs_placeholder_plugin/assets/placeholder.min.js", format = ["sdist", "wheel"] },
|
|
26
|
+
{ path = "src/mkdocs_placeholder_plugin/assets/placeholder.min.js.map", format = ["sdist", "wheel"] },
|
|
27
|
+
"LICENSE",
|
|
28
|
+
"README.md"
|
|
29
|
+
]
|
|
24
30
|
|
|
25
31
|
[tool.poetry.group.dev.dependencies]
|
|
26
32
|
mkdocs-material = "^9.6.18"
|
|
@@ -2,6 +2,7 @@ import os
|
|
|
2
2
|
import shutil
|
|
3
3
|
from typing import Optional
|
|
4
4
|
# local
|
|
5
|
+
from ..generic import LOGGER
|
|
5
6
|
from ..generic.config import PlaceholderConfig
|
|
6
7
|
from ..generic.json_generator import generate_json_for_javascript_code
|
|
7
8
|
|
|
@@ -60,8 +61,11 @@ def copy_assets_to_directory_debuggable(generic_config: PlaceholderConfig, outpu
|
|
|
60
61
|
|
|
61
62
|
def read_resource_file(name: str) -> str:
|
|
62
63
|
path = get_resource_path(name)
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
try:
|
|
65
|
+
with open(path, "r") as f:
|
|
66
|
+
return f.read()
|
|
67
|
+
except Exception as ex:
|
|
68
|
+
LOGGER.error(f"Failed to read resource '{name}' (full path: {path}) because of error: {ex}")
|
|
65
69
|
|
|
66
70
|
|
|
67
71
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|