TheoWorks Sphinx extension — emits the needs-graph JSON (needs.json) consumed by the TheoWorks viewer, editor, and CLI
Project description
theoworks-sphinx
The TheoWorks Sphinx extension. It runs inside a
sphinx-needs build and emits the
needs graph (needs.json) consumed by the TheoWorks viewer, editor, and
theoworks-cli.
Install
pip install theoworks-sphinx
This pulls in theoworks-core,
sphinx, and sphinx-needs.
Usage
Add the extension to your project's conf.py (after sphinx_needs):
extensions = [
"sphinx_needs",
"theoworks_sphinx",
]
Build as usual; the extension writes the enriched needs graph alongside the Sphinx output:
sphinx-build -b html docs docs/_build
You can also extract the graph directly from Python (no HTML build required):
from theoworks_sphinx import extract_project, write_needs_graph
graph = extract_project("path/to/project")
write_needs_graph(graph, "needs-graph.json")
License
Apache-2.0. 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 theoworks_sphinx-0.1.0.tar.gz.
File metadata
- Download URL: theoworks_sphinx-0.1.0.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f11d63105dd7d9786376333b582dfe469818eac6b1097a34119ac2a4194efb31
|
|
| MD5 |
fe155d858ac51828d2716beb0590e991
|
|
| BLAKE2b-256 |
d4d936549ba748bee3c71cf0eec004b883daf094dc4299ba9f83764747364060
|
File details
Details for the file theoworks_sphinx-0.1.0-py3-none-any.whl.
File metadata
- Download URL: theoworks_sphinx-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5210c68a2b6b8caa66a07ed9d6379b042aaea141faf39dda3377fdfafcd861a0
|
|
| MD5 |
43d0ef5dff793a65968dea7a94756482
|
|
| BLAKE2b-256 |
c12552e8e33606b457e909697326aab6ba1768943e2e5a6fe1a3abf6ca45ad4f
|