Skip to main content

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.

CI PyPI Python License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs_gitsvg-0.0.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkdocs_gitsvg-0.0.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

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

Hashes for mkdocs_gitsvg-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b3dc8e99505aaaeaafe76b7e4ce6dd4e99cdee7746264c3946d5006f3ead50b1
MD5 08c8f292e2aa08b80974faeadfff5614
BLAKE2b-256 6aa255b9e5aea6d34ad429a75089e77600c62ef2602a8e70605fa24e3c9c9a76

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdocs_gitsvg-0.0.1.tar.gz:

Publisher: release_tag.yml on bertpl/mkdocs-gitsvg

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for mkdocs_gitsvg-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3c083670fce54f228348caeddc73f31019db0d871c0c68ded4797d505a41ddd2
MD5 e79a4c0d982cd5105f81f09393d7dc09
BLAKE2b-256 a7b032a79dfd3edb43edb3bc3fa2dca76601bdbc41b6f87e73721dc57004dcdd

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page