mkdocs-data-plugin 0.2.0__tar.gz → 0.3.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_data_plugin-0.2.0 → mkdocs_data_plugin-0.3.0}/PKG-INFO +6 -4
- mkdocs_data_plugin-0.3.0/mkdocs_data_plugin/__init__.py +5 -0
- {mkdocs_data_plugin-0.2.0 → mkdocs_data_plugin-0.3.0}/pyproject.toml +5 -4
- mkdocs_data_plugin-0.3.0/tests/data/a.yml +2 -0
- mkdocs_data_plugin-0.3.0/tests/data/dir1/b.yml +2 -0
- mkdocs_data_plugin-0.3.0/tests/data/dir1.yml +2 -0
- mkdocs_data_plugin-0.3.0/tests/data/dir2/c.json +4 -0
- mkdocs_data_plugin-0.3.0/tests/docs/test_dir_source.md +11 -0
- {mkdocs_data_plugin-0.2.0 → mkdocs_data_plugin-0.3.0}/tests/test_data_template.py +7 -7
- {mkdocs_data_plugin-0.2.0 → mkdocs_data_plugin-0.3.0}/tests/test_load_data.py +16 -12
- mkdocs_data_plugin-0.2.0/mkdocs_data_plugin/__init__.py +0 -1
- mkdocs_data_plugin-0.2.0/tests/data/a.yml +0 -2
- mkdocs_data_plugin-0.2.0/tests/data/dir1/b.yml +0 -2
- mkdocs_data_plugin-0.2.0/tests/data/dir2/c.json +0 -4
- mkdocs_data_plugin-0.2.0/tests/docs/test_dir_source.md +0 -11
- {mkdocs_data_plugin-0.2.0 → mkdocs_data_plugin-0.3.0}/.gitignore +0 -0
- {mkdocs_data_plugin-0.2.0 → mkdocs_data_plugin-0.3.0}/LICENSE +0 -0
- {mkdocs_data_plugin-0.2.0 → mkdocs_data_plugin-0.3.0}/README.md +0 -0
- {mkdocs_data_plugin-0.2.0 → mkdocs_data_plugin-0.3.0}/mkdocs_data_plugin/plugin.py +0 -0
- {mkdocs_data_plugin-0.2.0 → mkdocs_data_plugin-0.3.0}/tests/__init__.py +0 -0
- {mkdocs_data_plugin-0.2.0 → mkdocs_data_plugin-0.3.0}/tests/docs/fruits.yml +0 -0
- {mkdocs_data_plugin-0.2.0 → mkdocs_data_plugin-0.3.0}/tests/docs/test_file_source.md +0 -0
- {mkdocs_data_plugin-0.2.0 → mkdocs_data_plugin-0.3.0}/tests/mkdocs.yml +0 -0
- {mkdocs_data_plugin-0.2.0 → mkdocs_data_plugin-0.3.0}/tests/test_config.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: mkdocs-data-plugin
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: MkDocs plugin that allows to read data from markup files
|
|
5
5
|
Project-URL: Documentation, https://joapuiib.github.io/mkdocs-data-plugin
|
|
6
6
|
Project-URL: Download, https://github.com/joapuiib/mkdocs-data-plugin/releases
|
|
@@ -8,11 +8,13 @@ Project-URL: Homepage, https://joapuiib.github.io/mkdocs-data-plugin
|
|
|
8
8
|
Project-URL: Source, https://github.com/joapuiib/mkdocs-data-plugin
|
|
9
9
|
Project-URL: Tracker, https://github.com/joapuiib/mkdocs-data-plugin/issues
|
|
10
10
|
Author-email: Joan Puigcerver <joapuiib@gmail.com>
|
|
11
|
-
License: MIT
|
|
11
|
+
License-Expression: MIT
|
|
12
|
+
License-File: LICENSE
|
|
12
13
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
13
14
|
Requires-Python: >=3.8
|
|
14
15
|
Requires-Dist: mkdocs-macros-plugin>=1.2.0
|
|
15
|
-
Requires-Dist: mkdocs
|
|
16
|
+
Requires-Dist: mkdocs<2.0,>=1.5.2
|
|
17
|
+
Requires-Dist: properdocs>=1.6
|
|
16
18
|
Description-Content-Type: text/markdown
|
|
17
19
|
|
|
18
20
|
# mkdocs-data-plugin
|
|
@@ -16,7 +16,8 @@ classifiers = [
|
|
|
16
16
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
17
17
|
]
|
|
18
18
|
dependencies = [
|
|
19
|
-
"mkdocs>=1.5.2",
|
|
19
|
+
"mkdocs>=1.5.2,<2.0",
|
|
20
|
+
"properdocs>=1.6",
|
|
20
21
|
"mkdocs-macros-plugin>=1.2.0",
|
|
21
22
|
]
|
|
22
23
|
|
|
@@ -63,17 +64,17 @@ type = ["default"]
|
|
|
63
64
|
|
|
64
65
|
[tool.hatch.envs.doc]
|
|
65
66
|
dependencies = [
|
|
66
|
-
"mkdocs-
|
|
67
|
+
"mkdocs-materialx[imaging]~=10.1",
|
|
67
68
|
"mkdocs-alias-plugin~=0.8",
|
|
68
69
|
"mkdocs-git-revision-date-localized-plugin~=1.2",
|
|
69
70
|
]
|
|
70
71
|
|
|
71
72
|
[tool.hatch.envs.doc.scripts]
|
|
72
73
|
serve = [
|
|
73
|
-
"
|
|
74
|
+
"properdocs serve",
|
|
74
75
|
]
|
|
75
76
|
build = [
|
|
76
|
-
"
|
|
77
|
+
"properdocs build",
|
|
77
78
|
]
|
|
78
79
|
|
|
79
80
|
[tool.hatch.envs.style]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Test Directory Source"
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
- data.a: `{{ data.a }}`
|
|
6
|
+
- data.a.number: `{{ data.a.number }}`
|
|
7
|
+
- data.a.string: `{{ data.a.string }}`
|
|
8
|
+
- data.dir1.b.number: `{{ data.dir1.b.number }}`
|
|
9
|
+
- data.dir1.b.string: `{{ data.dir1.b.string }}`
|
|
10
|
+
- data.dir2.c.number: `{{ data.dir2.c.number }}`
|
|
11
|
+
- data.dir2.c.string: `{{ data.dir2.c.string }}`
|
|
@@ -20,13 +20,13 @@ def test_dir_source_in_markdown_file():
|
|
|
20
20
|
data_loaded = re.findall(r"<code>([^<]*)", f.read())
|
|
21
21
|
print(data_loaded)
|
|
22
22
|
assert(data_loaded == [
|
|
23
|
-
"{'
|
|
24
|
-
"1", # data/a.yml ->
|
|
25
|
-
"text", # data/a.yml ->
|
|
26
|
-
"2", # data/dir1/b.yml ->
|
|
27
|
-
"text", # data/dir1/b.yml ->
|
|
28
|
-
"3", # data/dir2/c.yml ->
|
|
29
|
-
"text", # data/dir2/c.yml ->
|
|
23
|
+
"{'number': 1, 'string': 'text'}", # data/a.yml
|
|
24
|
+
"1", # data/a.yml -> number
|
|
25
|
+
"text", # data/a.yml -> string
|
|
26
|
+
"2", # data/dir1/b.yml -> number
|
|
27
|
+
"text", # data/dir1/b.yml -> string
|
|
28
|
+
"3", # data/dir2/c.yml -> number
|
|
29
|
+
"text", # data/dir2/c.yml -> string
|
|
30
30
|
])
|
|
31
31
|
|
|
32
32
|
def test_file_source_in_markdown_file():
|
|
@@ -32,19 +32,21 @@ def test_folder_source():
|
|
|
32
32
|
|
|
33
33
|
assert data == {
|
|
34
34
|
"a": {
|
|
35
|
-
"
|
|
36
|
-
"
|
|
35
|
+
"number": 1,
|
|
36
|
+
"string": "text",
|
|
37
37
|
},
|
|
38
38
|
"dir1": {
|
|
39
|
+
"number": 1,
|
|
40
|
+
"string": "text",
|
|
39
41
|
"b": {
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
+
"number": 2,
|
|
43
|
+
"string": "text",
|
|
42
44
|
},
|
|
43
45
|
},
|
|
44
46
|
"dir2": {
|
|
45
47
|
"c": {
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
+
"number": 3,
|
|
49
|
+
"string": "text",
|
|
48
50
|
},
|
|
49
51
|
},
|
|
50
52
|
}
|
|
@@ -64,19 +66,21 @@ def test_folder_source_slash():
|
|
|
64
66
|
|
|
65
67
|
assert data == {
|
|
66
68
|
"a": {
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
+
"number": 1,
|
|
70
|
+
"string": "text",
|
|
69
71
|
},
|
|
70
72
|
"dir1": {
|
|
73
|
+
"number": 1,
|
|
74
|
+
"string": "text",
|
|
71
75
|
"b": {
|
|
72
|
-
"
|
|
73
|
-
"
|
|
76
|
+
"number": 2,
|
|
77
|
+
"string": "text",
|
|
74
78
|
},
|
|
75
79
|
},
|
|
76
80
|
"dir2": {
|
|
77
81
|
"c": {
|
|
78
|
-
"
|
|
79
|
-
"
|
|
82
|
+
"number": 3,
|
|
83
|
+
"string": "text",
|
|
80
84
|
},
|
|
81
85
|
},
|
|
82
86
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
version = "0.2.0"
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "Test Directory Source"
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
- data.a: `{{ data.a }}`
|
|
6
|
-
- data.a.a1: `{{ data.a.a1 }}`
|
|
7
|
-
- data.a.a2: `{{ data.a.a2 }}`
|
|
8
|
-
- data.dir1.b.b1: `{{ data.dir1.b.b1 }}`
|
|
9
|
-
- data.dir1.b.b2: `{{ data.dir1.b.b2 }}`
|
|
10
|
-
- data.dir2.c.c1: `{{ data.dir2.c.c1 }}`
|
|
11
|
-
- data.dir2.c.c2: `{{ data.dir2.c.c2 }}`
|
|
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
|