Skip to main content

sphinx-likec4

CI docs Python License

Embed interactive LikeC4 architecture views — including dynamic view sequence diagrams — in Sphinx documentation.

The extension runs the pinned LikeC4 CLI for you (node ≥ 20 required at doc-build time), caches the build on a content hash, validates every embedded view id at build time (-W friendly), and serves the viewer with hash routing so it works from any subpath.

Agent skill

An Agent Skill documenting the directive surface ships in skills/:

npx skills add ckeller42/sphinx-likec4      # installs into your agent's skills dir

An LLM-oriented summary of the whole project lives at /llms.txt.

Quickstart

pip install sphinx-likec4
# conf.py
extensions = ["sphinx_likec4"]
likec4_source_dir = "model"
.. likec4-view:: cloud-to-amazon

Static images and PDF

Views can also be embedded as static PNG/JPG images — per directive, per output format, or by default:

.. likec4-view:: cloud-to-amazon
   :render: png          # static image on an HTML page (iframe is the default there)
   :mode: sequence       # dynamic views: sequence layout, in the iframe and in the image
   :width: 80%

LaTeX/PDF and epub builds do this automatically for every view — sphinx-build -M latexpdf just works, Chromium (via Playwright) is installed once on first use. Configure the default per output format with likec4_render = {"latex": "jpg"}.

Example: the PDF rendering of these docs — every diagram in it, including the sequence view, is a static image produced this way.

Docs: https://ckeller42.github.io/sphinx-likec4/ · License: MIT

Release files for sphinx-likec4 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sphinx-likec4 0.2.0
File Size Uploaded
sphinx_likec4-0.2.0.tar.gz 72.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sphinx-likec4 0.2.0
File Interpreter ABI Platform
sphinx_likec4-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 87.4 kB

Release files / sphinx_likec4-0.2.0.tar.gz

Download URL sphinx_likec4-0.2.0.tar.gz
Size 72.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2d60a44178c8a89e4115fa31b8c6439f97136ae3625700a3e617bb2842d1452e
BLAKE2b-256 checksum
How to use checksums
c678128ca2b399b00c81761c015e5fda29ad0054274f1ddf949bed57e2455f52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release files / sphinx_likec4-0.2.0-py3-none-any.whl

Download URL sphinx_likec4-0.2.0-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc9c3e74a5d96fbc4cf9707b8657b57fa35a015b2517dcc602a1dd74d829b9d9
BLAKE2b-256 checksum
How to use checksums
0cbb9ec1f7e6df4fa3a8f10b0217f201781866d1573587e5b9fe3135662b88c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.1

2 release files

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page