mkdocs-gitsvg 0.0.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.
@@ -0,0 +1,40 @@
1
+ # Python
2
+ __pycache__/
3
+ *.egg-info/
4
+ dist/
5
+ .pytest_cache/
6
+ .ruff_cache/
7
+
8
+ # Coverage
9
+ htmlcov/
10
+ .coverage
11
+ reports/
12
+
13
+ # Virtual environments
14
+ .venv/
15
+
16
+ # Private dev docs
17
+ design/
18
+ .local/
19
+ local/
20
+
21
+ # IDE
22
+ .idea/
23
+ .vscode/
24
+
25
+ # OS
26
+ .DS_Store
27
+ ._*
28
+ Thumbs.db
29
+ Desktop.ini
30
+
31
+ # AI assistants
32
+ .claude/
33
+ CLAUDE.md
34
+ AGENTS.md
35
+ .cursor/
36
+ .cursorrules
37
+ .aider*
38
+ .copilot/
39
+ .github/copilot-instructions.md
40
+ .temp/
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026, Bert Pluymers
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,70 @@
1
+ Metadata-Version: 2.4
2
+ Name: mkdocs-gitsvg
3
+ Version: 0.0.1
4
+ Summary: MkDocs plugin that renders gitsvg git-graph diagrams from fenced code blocks to inline SVG.
5
+ Project-URL: Source, https://github.com/bertpl/mkdocs-gitsvg
6
+ Project-URL: Changelog, https://github.com/bertpl/mkdocs-gitsvg/blob/main/CHANGELOG.md
7
+ Project-URL: Issues, https://github.com/bertpl/mkdocs-gitsvg/issues
8
+ Author-email: Bert Pluymers <bert.pluymers@gmail.com>
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Keywords: diagram,documentation,git,mkdocs,mkdocs-plugin,svg
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Programming Language :: Python :: 3.14
19
+ Classifier: Topic :: Documentation
20
+ Classifier: Topic :: Software Development :: Documentation
21
+ Requires-Python: >=3.11
22
+ Requires-Dist: gitsvg
23
+ Requires-Dist: mkdocs>=1.4
24
+ Requires-Dist: pymdown-extensions>=10.0
25
+ Description-Content-Type: text/markdown
26
+
27
+ # mkdocs-gitsvg
28
+
29
+ MkDocs plugin that renders [gitsvg](https://github.com/bertpl/gitsvg) git-graph
30
+ diagrams from fenced code blocks to inline SVG at build time.
31
+
32
+ [![CI](https://img.shields.io/github/actions/workflow/status/bertpl/mkdocs-gitsvg/push_to_main.yml?branch=main&label=CI)](https://github.com/bertpl/mkdocs-gitsvg/actions/workflows/push_to_main.yml)
33
+ [![PyPI](https://img.shields.io/pypi/v/mkdocs-gitsvg.svg)](https://pypi.org/project/mkdocs-gitsvg/)
34
+ [![Python](https://img.shields.io/pypi/pyversions/mkdocs-gitsvg.svg)](https://pypi.org/project/mkdocs-gitsvg/)
35
+ [![License](https://img.shields.io/badge/license-MIT-blue)](https://github.com/bertpl/mkdocs-gitsvg/blob/main/LICENSE)
36
+
37
+ > **Status:** early development. The package scaffold and release pipeline are
38
+ > in place; diagram rendering is being built out.
39
+
40
+ ## Installation
41
+
42
+ ```bash
43
+ pip install mkdocs-gitsvg
44
+ ```
45
+
46
+ ## Usage
47
+
48
+ Enable the plugin in `mkdocs.yml`:
49
+
50
+ ```yaml
51
+ plugins:
52
+ - gitsvg
53
+ ```
54
+
55
+ Then draw a git graph in any page with a ` ```gitsvg ` fenced block whose body
56
+ is a [gitsvg](https://github.com/bertpl/gitsvg) JSONL op-stream:
57
+
58
+ ````markdown
59
+ ```gitsvg
60
+ {"op": "branch", "name": "main", "label_side": "before"}
61
+ {"op": "commit", "branch": "main", "id": "c1", "msg": "initial commit", "hash": "auto"}
62
+ {"op": "commit", "branch": "main", "id": "c2", "msg": "add README", "hash": "auto"}
63
+ ```
64
+ ````
65
+
66
+ The block renders to an inline SVG git graph in the built site.
67
+
68
+ ## License
69
+
70
+ MIT — see [LICENSE](LICENSE).
@@ -0,0 +1,44 @@
1
+ # mkdocs-gitsvg
2
+
3
+ MkDocs plugin that renders [gitsvg](https://github.com/bertpl/gitsvg) git-graph
4
+ diagrams from fenced code blocks to inline SVG at build time.
5
+
6
+ [![CI](https://img.shields.io/github/actions/workflow/status/bertpl/mkdocs-gitsvg/push_to_main.yml?branch=main&label=CI)](https://github.com/bertpl/mkdocs-gitsvg/actions/workflows/push_to_main.yml)
7
+ [![PyPI](https://img.shields.io/pypi/v/mkdocs-gitsvg.svg)](https://pypi.org/project/mkdocs-gitsvg/)
8
+ [![Python](https://img.shields.io/pypi/pyversions/mkdocs-gitsvg.svg)](https://pypi.org/project/mkdocs-gitsvg/)
9
+ [![License](https://img.shields.io/badge/license-MIT-blue)](https://github.com/bertpl/mkdocs-gitsvg/blob/main/LICENSE)
10
+
11
+ > **Status:** early development. The package scaffold and release pipeline are
12
+ > in place; diagram rendering is being built out.
13
+
14
+ ## Installation
15
+
16
+ ```bash
17
+ pip install mkdocs-gitsvg
18
+ ```
19
+
20
+ ## Usage
21
+
22
+ Enable the plugin in `mkdocs.yml`:
23
+
24
+ ```yaml
25
+ plugins:
26
+ - gitsvg
27
+ ```
28
+
29
+ Then draw a git graph in any page with a ` ```gitsvg ` fenced block whose body
30
+ is a [gitsvg](https://github.com/bertpl/gitsvg) JSONL op-stream:
31
+
32
+ ````markdown
33
+ ```gitsvg
34
+ {"op": "branch", "name": "main", "label_side": "before"}
35
+ {"op": "commit", "branch": "main", "id": "c1", "msg": "initial commit", "hash": "auto"}
36
+ {"op": "commit", "branch": "main", "id": "c2", "msg": "add README", "hash": "auto"}
37
+ ```
38
+ ````
39
+
40
+ The block renders to an inline SVG git graph in the built site.
41
+
42
+ ## License
43
+
44
+ MIT — see [LICENSE](LICENSE).
@@ -0,0 +1,5 @@
1
+ """mkdocs-gitsvg — MkDocs plugin rendering gitsvg diagrams to inline SVG."""
2
+
3
+ from importlib.metadata import version
4
+
5
+ __version__ = version("mkdocs-gitsvg")
@@ -0,0 +1,13 @@
1
+ """The mkdocs-gitsvg MkDocs plugin.
2
+
3
+ Scaffold placeholder: a no-op MkDocs ``BasePlugin`` subclass registered
4
+ under the ``gitsvg`` plugin name (via the ``mkdocs.plugins`` entry
5
+ point) so MkDocs discovers it. Fenced-block rendering, configuration,
6
+ and styling are added in later layers.
7
+ """
8
+
9
+ from mkdocs.plugins import BasePlugin
10
+
11
+
12
+ class GitSvgPlugin(BasePlugin):
13
+ """No-op MkDocs plugin placeholder for mkdocs-gitsvg."""
@@ -0,0 +1,69 @@
1
+ [project]
2
+ name = "mkdocs-gitsvg"
3
+ version = "0.0.1"
4
+ description = "MkDocs plugin that renders gitsvg git-graph diagrams from fenced code blocks to inline SVG."
5
+ readme = "README.md"
6
+ license = "MIT"
7
+ authors = [
8
+ { name = "Bert Pluymers", email = "bert.pluymers@gmail.com" }
9
+ ]
10
+ requires-python = ">=3.11"
11
+ keywords = ["mkdocs", "mkdocs-plugin", "git", "svg", "diagram", "documentation"]
12
+ classifiers = [
13
+ "Development Status :: 3 - Alpha",
14
+ "Intended Audience :: Developers",
15
+ "License :: OSI Approved :: MIT License",
16
+ "Programming Language :: Python :: 3.11",
17
+ "Programming Language :: Python :: 3.12",
18
+ "Programming Language :: Python :: 3.13",
19
+ "Programming Language :: Python :: 3.14",
20
+ "Topic :: Documentation",
21
+ "Topic :: Software Development :: Documentation",
22
+ ]
23
+ dependencies = [
24
+ "mkdocs>=1.4",
25
+ "gitsvg",
26
+ "pymdown-extensions>=10.0",
27
+ ]
28
+
29
+ [dependency-groups]
30
+ dev = [
31
+ "pytest>=9.0",
32
+ "pytest-cov>=6.0",
33
+ "ruff>=0.14.0",
34
+ "pre-commit>=4.0",
35
+ ]
36
+
37
+ [project.entry-points."mkdocs.plugins"]
38
+ gitsvg = "mkdocs_gitsvg.plugin:GitSvgPlugin"
39
+
40
+ [project.urls]
41
+ Source = "https://github.com/bertpl/mkdocs-gitsvg"
42
+ Changelog = "https://github.com/bertpl/mkdocs-gitsvg/blob/main/CHANGELOG.md"
43
+ Issues = "https://github.com/bertpl/mkdocs-gitsvg/issues"
44
+
45
+ [build-system]
46
+ requires = ["hatchling"]
47
+ build-backend = "hatchling.build"
48
+
49
+ [tool.hatch.build.targets.sdist]
50
+ packages = ["mkdocs_gitsvg"]
51
+
52
+ [tool.hatch.build.targets.wheel]
53
+ packages = ["mkdocs_gitsvg"]
54
+
55
+ [tool.ruff]
56
+ line-length = 120
57
+ target-version = "py311"
58
+
59
+ [tool.ruff.lint]
60
+ select = ["I"]
61
+
62
+ [tool.pytest.ini_options]
63
+ testpaths = ["tests"]
64
+
65
+ [tool.coverage.run]
66
+ source = ["mkdocs_gitsvg"]
67
+
68
+ [tool.coverage.report]
69
+ precision = 2