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.1

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.1
File Size Uploaded
sphinx_likec4-0.2.1.tar.gz 73.7 kB Details

Built distribution (wheel)

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

Total release size: 88.2 kB

Release files / sphinx_likec4-0.2.1.tar.gz

Download URL sphinx_likec4-0.2.1.tar.gz
Size 73.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0d176091b1b0ea93ad324ebcf1ae6a2caa27c0feed770e08a1a010f943e512eb
BLAKE2b-256 checksum
How to use checksums
164483a2779d1a2ea370783319cc24bb330028c66d01fa8d7adb76cb903cfb0b
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 25, 2026.

Transparency log

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

Download URL sphinx_likec4-0.2.1-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7358c3af463591fdf36f4fc2a5b22d4cd50c981a8a02b835e100a1b583f1fb7e
BLAKE2b-256 checksum
How to use checksums
5fc49d260fad5ab092b44f058a64da39d24b700579aea48641b0d5d709ae54ab
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 25, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

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