MkDocs plugin that renders gitsvg git-graph diagrams from fenced code blocks to inline SVG.
Project description
mkdocs-gitsvg
MkDocs plugin that renders gitsvg git-graph diagrams from fenced code blocks to inline SVG at build time.
Status: early development. The package scaffold and release pipeline are in place; diagram rendering is being built out.
Installation
pip install mkdocs-gitsvg
Usage
Enable the plugin in mkdocs.yml:
plugins:
- gitsvg
Then draw a git graph in any page with a ```gitsvg fenced block whose body
is a gitsvg JSONL op-stream:
```gitsvg
{"op": "branch", "name": "main", "label_side": "before"}
{"op": "commit", "branch": "main", "id": "c1", "msg": "initial commit", "hash": "auto"}
{"op": "commit", "branch": "main", "id": "c2", "msg": "add README", "hash": "auto"}
```
The block renders to an inline SVG git graph in the built site.
License
MIT — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mkdocs_gitsvg-0.0.1.tar.gz.
File metadata
- Download URL: mkdocs_gitsvg-0.0.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3dc8e99505aaaeaafe76b7e4ce6dd4e99cdee7746264c3946d5006f3ead50b1
|
|
| MD5 |
08c8f292e2aa08b80974faeadfff5614
|
|
| BLAKE2b-256 |
6aa255b9e5aea6d34ad429a75089e77600c62ef2602a8e70605fa24e3c9c9a76
|
Provenance
The following attestation bundles were made for mkdocs_gitsvg-0.0.1.tar.gz:
Publisher:
release_tag.yml on bertpl/mkdocs-gitsvg
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mkdocs_gitsvg-0.0.1.tar.gz -
Subject digest:
b3dc8e99505aaaeaafe76b7e4ce6dd4e99cdee7746264c3946d5006f3ead50b1 - Sigstore transparency entry: 1708763698
- Sigstore integration time:
-
Permalink:
bertpl/mkdocs-gitsvg@477c90e57fa5ca94530c0a7432da6ef588fe0ddd -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/bertpl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release_tag.yml@477c90e57fa5ca94530c0a7432da6ef588fe0ddd -
Trigger Event:
push
-
Statement type:
File details
Details for the file mkdocs_gitsvg-0.0.1-py3-none-any.whl.
File metadata
- Download URL: mkdocs_gitsvg-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c083670fce54f228348caeddc73f31019db0d871c0c68ded4797d505a41ddd2
|
|
| MD5 |
e79a4c0d982cd5105f81f09393d7dc09
|
|
| BLAKE2b-256 |
a7b032a79dfd3edb43edb3bc3fa2dca76601bdbc41b6f87e73721dc57004dcdd
|
Provenance
The following attestation bundles were made for mkdocs_gitsvg-0.0.1-py3-none-any.whl:
Publisher:
release_tag.yml on bertpl/mkdocs-gitsvg
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mkdocs_gitsvg-0.0.1-py3-none-any.whl -
Subject digest:
3c083670fce54f228348caeddc73f31019db0d871c0c68ded4797d505a41ddd2 - Sigstore transparency entry: 1708763722
- Sigstore integration time:
-
Permalink:
bertpl/mkdocs-gitsvg@477c90e57fa5ca94530c0a7432da6ef588fe0ddd -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/bertpl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release_tag.yml@477c90e57fa5ca94530c0a7432da6ef588fe0ddd -
Trigger Event:
push
-
Statement type: