This release is a pre-release and may not be stable for production use.
pyTooling.Sphinx
pyTooling.Sphinx adds roles and directives to Sphinx: styled inline text and line breaks working in HTML and LaTeX, condensed class interfaces, dependency tables generated from requirements files and the package index, badges, schema graphs, trees, lists of abbreviations, and unit test and coverage reports.
Other packages build on it: pyTooling.GitHub contributes the domain
ghactions for GitHub Actions workflows, enabled as the extension pyTooling.GitHub.Sphinx.
The extension is enabled in conf.py:
# doc/conf.py
extensions = [
...,
"pyTooling.Sphinx",
]
It links its stylesheet into every HTML page, appends its substitutions to rst_prolog, and sets up
sphinx.ext.graphviz for the schema graphs.
The domain report - unit test, code coverage and documentation coverage reports as tables - reads the reports with
pyEDAA.Reports, an optional dependency. A project using a report installs
it with the extra reports:
pip install pyTooling.Sphinx[reports]
Roles and Directives
Roles
- Style roles -
:red:,:underline:,:deletion:and more: CSS classes on inline text, with the stylesheet giving them their meaning. - Inline Python code -
:pycode:, syntax-highlighted inline code. - Line break and horizontal rule -
|br|and|hr|, in HTML and LaTeX.
Directives
- condensed-class - A class' public interface as one code block, parsed from its source.
- dependency-table - A project's dependencies with versions and licenses, from its requirements files and the package index.
- jsonschema-graph - Planned: a JSON schema as a Graphviz graph.
- xmlschema-graph - An XML schema as a Graphviz graph, drawn from the schema file.
- shields - A project's badges from shields.io, in rows.
- tree - A hierarchy, written as an indented list, drawn as a tree with foldable nodes.
- abbreviations - A list of abbreviations, referred to by
:acs:,:acl:,:acf:and their plurals; in HTML, a short form explains itself on hover.
Directives of domain report (extra reports)
- report:unittest-summary - A unit test report in JUnit XML or pyTooling's XML format, per
testsuite and testcase; optionally with a page per testsuite and testcase, referred to by the roles
:ts:and:tc:. - report:code-coverage - A code coverage report in Cobertura XML or coverage.py's JSON
format, per directory and source file, and a legend of its coverage levels; optionally with a page per directory and
source file showing a file's highlighted source, each line marked by its coverage, referred to by the role
:cov:. - report:doc-coverage - A package's documentation coverage, per package and module, and a legend of its coverage levels.
Consumers
This layer is used by:
- pyTooling.GitHub - its Sphinx domain
ghactionsbuilds on this extension, and its documentation uses it. - 🚧 pyTooling - its documentation, which still uses pyTooling's own copy of this extension.
Contributors
- Patrick Lehmann (Maintainer)
- and more...
License
This Python package (source code) is licensed under Apache License 2.0.
The accompanying documentation is licensed under Creative Commons - Attribution 4.0 (CC-BY 4.0).
Content of other projects - e.g. GitHub's emoji table from github/gemoji (MIT) - is listed with its license in
NOTICE.md.
SPDX-License-Identifier: Apache-2.0
Metadata
Release files for pyTooling.Sphinx 0.1.0rc3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytooling_sphinx-0.1.0rc3.tar.gz | 183.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytooling_sphinx-0.1.0rc3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 390.6 kB
Release files / pytooling_sphinx-0.1.0rc3.tar.gz
| Download URL | pytooling_sphinx-0.1.0rc3.tar.gz |
|---|---|
| Size | 183.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4f3a46d495551260f003e5328c36c25d555496fca7d9439c8c65d3c3db0dd671
|
|
BLAKE2b-256 checksum How to use checksums |
b01b700afd2f57db7c24840ec48ba2aba7d736b8816e7fa179094ea279d414a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.0
|
Release files / pytooling_sphinx-0.1.0rc3-py3-none-any.whl
| Download URL | pytooling_sphinx-0.1.0rc3-py3-none-any.whl |
|---|---|
| Size | 206.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee4f34ad8e9d652571f2003c2fa672071cb9f07a4578771c07cf3c856132d995
|
|
BLAKE2b-256 checksum How to use checksums |
920273339356e666c40d2938d2c3a5e0022e8e10cb2e475a7f8943ef0bb38c63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.0
|