mkdocs-entangled-plugin 0.6.0__tar.gz → 0.7.0__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_entangled_plugin-0.6.0 → mkdocs_entangled_plugin-0.7.0}/PKG-INFO +4 -4
- {mkdocs_entangled_plugin-0.6.0 → mkdocs_entangled_plugin-0.7.0}/mkdocs_entangled/on_page_markdown.py +4 -2
- {mkdocs_entangled_plugin-0.6.0 → mkdocs_entangled_plugin-0.7.0}/pyproject.toml +3 -4
- {mkdocs_entangled_plugin-0.6.0 → mkdocs_entangled_plugin-0.7.0}/.gitignore +0 -0
- {mkdocs_entangled_plugin-0.6.0 → mkdocs_entangled_plugin-0.7.0}/LICENSE +0 -0
- {mkdocs_entangled_plugin-0.6.0 → mkdocs_entangled_plugin-0.7.0}/README.md +0 -0
- {mkdocs_entangled_plugin-0.6.0 → mkdocs_entangled_plugin-0.7.0}/mkdocs_entangled/__init__.py +0 -0
- {mkdocs_entangled_plugin-0.6.0 → mkdocs_entangled_plugin-0.7.0}/mkdocs_entangled/config.py +0 -0
- {mkdocs_entangled_plugin-0.6.0 → mkdocs_entangled_plugin-0.7.0}/mkdocs_entangled/plugin.py +0 -0
- {mkdocs_entangled_plugin-0.6.0 → mkdocs_entangled_plugin-0.7.0}/mkdocs_entangled/py.typed +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: mkdocs-entangled-plugin
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7.0
|
|
4
4
|
Summary: Plugin for MkDocs helping with rendering Entangled (entangled.github.io) projects.
|
|
5
5
|
Author-email: Johan Hidding <j.hidding@esciencecenter.nl>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
7
7
|
License-File: LICENSE
|
|
8
|
-
Requires-Python: <4,>=3.
|
|
9
|
-
Requires-Dist: entangled-cli<3,>=2.
|
|
8
|
+
Requires-Python: <4,>=3.13
|
|
9
|
+
Requires-Dist: entangled-cli<3,>=2.5
|
|
10
10
|
Requires-Dist: mawk<0.2,>=0.1.7
|
|
11
11
|
Requires-Dist: mkdocs<2,>=1.4.2
|
|
12
12
|
Description-Content-Type: text/markdown
|
{mkdocs_entangled_plugin-0.6.0 → mkdocs_entangled_plugin-0.7.0}/mkdocs_entangled/on_page_markdown.py
RENAMED
|
@@ -12,6 +12,7 @@ from entangled.model import ReferenceMap, Content, PlainText, ReferenceId, CodeB
|
|
|
12
12
|
from entangled.model.properties import get_attribute, Id, Attribute, Class
|
|
13
13
|
from entangled.config import ConfigUpdate, read_config
|
|
14
14
|
from entangled.interface import Context, read_markdown
|
|
15
|
+
from entangled.io import FileCache
|
|
15
16
|
from repl_session import read_session
|
|
16
17
|
|
|
17
18
|
|
|
@@ -44,7 +45,8 @@ def compose_filter(a: ContentFilter, b: ContentFilter) -> ContentFilter:
|
|
|
44
45
|
|
|
45
46
|
|
|
46
47
|
def compose_filters(*args: ContentFilter) -> ContentFilter:
|
|
47
|
-
|
|
48
|
+
identity: ContentFilter = lambda _, c: [c]
|
|
49
|
+
return reduce(compose_filter, args, identity)
|
|
48
50
|
|
|
49
51
|
|
|
50
52
|
def read_single_markdown(ctx: Context, text: str) -> tuple[ReferenceMap, list[Content]]:
|
|
@@ -132,7 +134,7 @@ def include_repl_output(reference_map: ReferenceMap, r: ReferenceId) -> list[Con
|
|
|
132
134
|
|
|
133
135
|
|
|
134
136
|
def on_page_markdown(markdown: str, *, page: Page, config: MkDocsConfig, files: Files) -> str:
|
|
135
|
-
context = Context() | read_config()
|
|
137
|
+
context = Context() | read_config(FileCache())
|
|
136
138
|
reference_map, content = read_single_markdown(context, markdown)
|
|
137
139
|
filtered_content = iter_bind(content, partial(compose_filters(add_title, include_repl_output), reference_map))
|
|
138
140
|
return document_to_text(reference_map, filtered_content)
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "mkdocs-entangled-plugin"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.7.0"
|
|
4
4
|
description = "Plugin for MkDocs helping with rendering Entangled (entangled.github.io) projects."
|
|
5
5
|
authors = [{ name = "Johan Hidding", email = "j.hidding@esciencecenter.nl" }]
|
|
6
|
-
requires-python = ">=3.
|
|
6
|
+
requires-python = ">=3.13,<4"
|
|
7
7
|
readme = "README.md"
|
|
8
8
|
license = "Apache-2.0"
|
|
9
9
|
dependencies = [
|
|
10
10
|
"mkdocs>=1.4.2,<2",
|
|
11
|
-
"entangled-cli>=2.
|
|
11
|
+
"entangled-cli>=2.5,<3",
|
|
12
12
|
"mawk>=0.1.7,<0.2",
|
|
13
13
|
]
|
|
14
14
|
|
|
@@ -45,4 +45,3 @@ packages = ["mkdocs_entangled"]
|
|
|
45
45
|
|
|
46
46
|
[tool.uv.sources]
|
|
47
47
|
entangled-cli = { git = "https://github.com/entangled/entangled.py" }
|
|
48
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mkdocs_entangled_plugin-0.6.0 → mkdocs_entangled_plugin-0.7.0}/mkdocs_entangled/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|