Skip to main content

Sphinx extension for Waterloo Docstrings

Project description

Waterloo Logo

Sphinx-Contrib Waterloo Docstrings

License Version Python Sphinx GitHub

This branch is under development

The sphinxcontrib-waterloo-docstrings package provides the Sphinx rendering layer for Waterloo Docstrings.

Waterloo Docstrings define a structured docstring format with explicit section semantics, normativity rules, and machine-readable output layers. This package connects that format to Sphinx by providing roles, directives, and rendering helpers for documentation projects that want to present Waterloo docstrings as human-readable HTML.

The extension is intentionally theme-friendly. It lets Sphinx themes such as Furo, Alabaster, and Classic provide most of the final layout, while the extension supplies semantic CSS classes for Waterloo roles and generated documentation structures.

What it provides

  • Sphinx roles for Waterloo inline markup.
  • Directives for rendering modules, classes, functions, methods, and context scopes.
  • Static CSS for Waterloo semantic roles.
  • Theme showcase sources for Furo, Alabaster, and Classic.

Related packages

  • sdv-doc-waterloo: core parser, validator, renderer, waterlint, and MCP server.
  • python-waterloo-lexer: Pygments lexer for Python files with Waterloo docstrings.

Documentation showcase

The public project documentation is published at:

The Sphinx extension showcase is planned under:

Installation

Install the Sphinx extension from PyPI:

pip install sphinxcontrib-waterloo-docstrings

The package depends on sdv-doc-waterloo and provides the Sphinx integration layer for Waterloo Docstrings.

Quick check

After installation, add the extension to a Sphinx conf.py:

extensions = [
    "sphinxcontrib.waterloo_docstrings",
]

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

sphinxcontrib_waterloo_docstrings-0.3.1.tar.gz (32.1 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file sphinxcontrib_waterloo_docstrings-0.3.1.tar.gz.

File metadata

File hashes

Hashes for sphinxcontrib_waterloo_docstrings-0.3.1.tar.gz
Algorithm Hash digest
SHA256 c430850f1c332926ceeb71046e15341ba42b6ad142fa0be8402722de9b926858
MD5 a6dfd5c4db1d59ffa4bb797fa9b617b3
BLAKE2b-256 2f9669a42549fbe945ba8810018abb3248fd4dfed03b5e5c66823ab93fccfe48

See more details on using hashes here.

File details

Details for the file sphinxcontrib_waterloo_docstrings-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinxcontrib_waterloo_docstrings-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5128284d0b81c1fdd24717a517b2840f59076308f3ed1724b233e309598b43cf
MD5 8d9b092ea70656b96842927b50cb543a
BLAKE2b-256 3ac35554112e8825097f13aac9ca808866dfcbb7cff09628170bda775d4d4f4a

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