Skip to main content

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


Download files

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

Source Distribution

theoworks_sphinx-0.1.0.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

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

theoworks_sphinx-0.1.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

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

Hashes for theoworks_sphinx-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f11d63105dd7d9786376333b582dfe469818eac6b1097a34119ac2a4194efb31
MD5 fe155d858ac51828d2716beb0590e991
BLAKE2b-256 d4d936549ba748bee3c71cf0eec004b883daf094dc4299ba9f83764747364060

See more details on using hashes here.

File details

Details for the file theoworks_sphinx-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for theoworks_sphinx-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5210c68a2b6b8caa66a07ed9d6379b042aaea141faf39dda3377fdfafcd861a0
MD5 43d0ef5dff793a65968dea7a94756482
BLAKE2b-256 c12552e8e33606b457e909697326aab6ba1768943e2e5a6fe1a3abf6ca45ad4f

See more details on using hashes here.

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