{"id":50732491,"url":"https://github.com/bertpl/mkdocs-gitsvg","last_synced_at":"2026-06-10T10:01:59.240Z","repository":{"id":362269018,"uuid":"1258158366","full_name":"bertpl/mkdocs-gitsvg","owner":"bertpl","description":"MkDocs plugin that renders gitsvg git-graph diagrams from fenced code blocks to inline SVG","archived":false,"fork":false,"pushed_at":"2026-06-03T10:25:13.000Z","size":63,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-03T12:13:30.016Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bertpl.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-03T10:21:02.000Z","updated_at":"2026-06-03T10:25:18.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bertpl/mkdocs-gitsvg","commit_stats":null,"previous_names":["bertpl/mkdocs-gitsvg"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bertpl/mkdocs-gitsvg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertpl%2Fmkdocs-gitsvg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertpl%2Fmkdocs-gitsvg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertpl%2Fmkdocs-gitsvg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertpl%2Fmkdocs-gitsvg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bertpl","download_url":"https://codeload.github.com/bertpl/mkdocs-gitsvg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertpl%2Fmkdocs-gitsvg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34146870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-10T10:01:58.518Z","updated_at":"2026-06-10T10:01:59.228Z","avatar_url":"https://github.com/bertpl.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mkdocs-gitsvg\n\nMkDocs plugin that renders [gitsvg](https://github.com/bertpl/gitsvg) git-graph\ndiagrams from fenced code blocks to inline SVG at build time.\n\n[![CI](https://img.shields.io/github/actions/workflow/status/bertpl/mkdocs-gitsvg/push_to_main.yml?branch=main\u0026label=CI)](https://github.com/bertpl/mkdocs-gitsvg/actions/workflows/push_to_main.yml)\n[![PyPI](https://img.shields.io/pypi/v/mkdocs-gitsvg.svg)](https://pypi.org/project/mkdocs-gitsvg/)\n[![Python](https://img.shields.io/pypi/pyversions/mkdocs-gitsvg.svg)](https://pypi.org/project/mkdocs-gitsvg/)\n[![License](https://img.shields.io/badge/license-MIT-blue)](https://github.com/bertpl/mkdocs-gitsvg/blob/main/LICENSE)\n\nNo client-side JavaScript: diagrams are rendered server-side at build time, so\nthey work in any browser and in offline / PDF exports.\n\n## Installation\n\n```bash\npip install mkdocs-gitsvg\n```\n\n## Usage\n\nEnable the plugin in `mkdocs.yml`:\n\n```yaml\nplugins:\n  - gitsvg\n```\n\nThen draw a git graph in any page with a ` ```gitsvg ` fenced block whose body\nis a [gitsvg](https://github.com/bertpl/gitsvg) JSONL op-stream:\n\n````markdown\n```gitsvg\n{\"op\": \"branch\", \"name\": \"main\", \"label_side\": \"before\"}\n{\"op\": \"commit\", \"branch\": \"main\", \"id\": \"c1\", \"msg\": \"initial commit\", \"hash\": \"auto\"}\n{\"op\": \"commit\", \"branch\": \"main\", \"id\": \"c2\", \"msg\": \"add README\", \"hash\": \"auto\"}\n```\n````\n\nThe block renders to an inline SVG git graph in the built site.\n\n## Configuration\n\nThe plugin needs no configuration. Available options (with defaults):\n\n```yaml\nplugins:\n  - gitsvg:\n      fence_name: gitsvg          # fenced-block language tag to intercept\n      css_class: gitsvg-diagram   # class on the wrapper \u003cdiv\u003e\n      on_error: warn              # warn | raise | show\n```\n\n`on_error` controls what happens when a diagram fails to render: `warn`\n(default) shows an error box and logs a warning (so `mkdocs build --strict`\nfails), `raise` fails the build immediately, and `show` shows the box silently.\nA bundled stylesheet is linked automatically. See the\n[documentation site](https://github.com/bertpl/mkdocs-gitsvg) for the full\nreference.\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbertpl%2Fmkdocs-gitsvg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbertpl%2Fmkdocs-gitsvg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbertpl%2Fmkdocs-gitsvg/lists"}