pyTooling.Sphinx 0.1.0rc2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. pytooling_sphinx-0.1.0rc2/LICENSE.md +82 -0
  2. pytooling_sphinx-0.1.0rc2/NOTICE.md +24 -0
  3. pytooling_sphinx-0.1.0rc2/PKG-INFO +213 -0
  4. pytooling_sphinx-0.1.0rc2/README.md +120 -0
  5. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/Abbreviation.py +452 -0
  6. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/CodeCoverage.py +878 -0
  7. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/CodeCoveragePages.py +443 -0
  8. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/CondensedClass.py +471 -0
  9. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/CondensedSource.py +441 -0
  10. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/DependencyTable.py +1437 -0
  11. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/DocCoverage.py +1120 -0
  12. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/ExternalLink.py +654 -0
  13. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/GitHubMarkdown.py +517 -0
  14. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/HTML.py +614 -0
  15. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/LaTeX.py +322 -0
  16. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/Markdown.py +691 -0
  17. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/Node.py +251 -0
  18. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/Pages.py +475 -0
  19. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/Resources/GitHubEmoji.txt +1901 -0
  20. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/Resources/__init__.py +53 -0
  21. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/Resources/pyTooling.Sphinx.sty +24 -0
  22. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/Resources/pyTooling.css +1116 -0
  23. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/Resources/pyTooling.js +53 -0
  24. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/Roles.py +168 -0
  25. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/SchemaGraph.py +228 -0
  26. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/Shields.py +600 -0
  27. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/Tree.py +596 -0
  28. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/UnicodeTable.py +519 -0
  29. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/Unittest.py +644 -0
  30. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/UnittestPages.py +325 -0
  31. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/Workaround.py +73 -0
  32. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/XMLSchemaGraph.py +194 -0
  33. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/__init__.py +1125 -0
  34. pytooling_sphinx-0.1.0rc2/pyTooling/Sphinx/py.typed +0 -0
  35. pytooling_sphinx-0.1.0rc2/pyTooling.Sphinx.egg-info/PKG-INFO +213 -0
  36. pytooling_sphinx-0.1.0rc2/pyTooling.Sphinx.egg-info/SOURCES.txt +40 -0
  37. pytooling_sphinx-0.1.0rc2/pyTooling.Sphinx.egg-info/dependency_links.txt +1 -0
  38. pytooling_sphinx-0.1.0rc2/pyTooling.Sphinx.egg-info/requires.txt +58 -0
  39. pytooling_sphinx-0.1.0rc2/pyTooling.Sphinx.egg-info/top_level.txt +1 -0
  40. pytooling_sphinx-0.1.0rc2/pyproject.toml +94 -0
  41. pytooling_sphinx-0.1.0rc2/setup.cfg +4 -0
  42. pytooling_sphinx-0.1.0rc2/setup.py +73 -0
@@ -0,0 +1,82 @@
1
+ This is a local copy of the Apache License Version 2.0.
2
+ The original can be obtained here: [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
3
+
4
+ --------------------------------------------------------------------------------
5
+
6
+ # Apache License
7
+
8
+ Version 2.0, January 2004
9
+
10
+ ## TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
11
+
12
+ ### 1. Definitions.
13
+
14
+ *"License"* shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
15
+
16
+ *"Licensor"* shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
17
+
18
+ *"Legal Entity"* shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
19
+
20
+ *"You"* (or *"Your"*) shall mean an individual or Legal Entity exercising permissions granted by this License.
21
+
22
+ *"Source"* form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
23
+
24
+ *"Object"* form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
25
+
26
+ *"Work"* shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
27
+
28
+ *"Derivative Works"* shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
29
+
30
+ *"Contribution"* shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, *"submitted"* means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as *"Not a Contribution."*
31
+
32
+ *"Contributor"* shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
33
+
34
+ ### 2. Grant of Copyright License.
35
+ Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
36
+
37
+ ### 3. Grant of Patent License.
38
+ Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
39
+
40
+ ### 4. Redistribution.
41
+ You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
42
+
43
+ - You must give any other recipients of the Work or Derivative Works a copy of this License; and
44
+ - You must cause any modified files to carry prominent notices stating that You changed the files; and
45
+ - You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
46
+ - If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
47
+
48
+ You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
49
+
50
+ ### 5. Submission of Contributions.
51
+ Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
52
+
53
+ ### 6. Trademarks.
54
+ This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
55
+
56
+ ### 7. Disclaimer of Warranty.
57
+ Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
58
+
59
+ ### 8. Limitation of Liability.
60
+ In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
61
+
62
+ ### 9. Accepting Warranty or Additional Liability.
63
+ While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
64
+
65
+
66
+ ## Appendix: How to apply the Apache License to your work
67
+
68
+ To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
69
+
70
+ Copyright [yyyy] [name of copyright owner]
71
+
72
+ Licensed under the Apache License, Version 2.0 (the "License");
73
+ you may not use this file except in compliance with the License.
74
+ You may obtain a copy of the License at
75
+
76
+ http://www.apache.org/licenses/LICENSE-2.0
77
+
78
+ Unless required by applicable law or agreed to in writing, software
79
+ distributed under the License is distributed on an "AS IS" BASIS,
80
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
81
+ See the License for the specific language governing permissions and
82
+ limitations under the License.
@@ -0,0 +1,24 @@
1
+ # Notices
2
+
3
+ pyTooling.Sphinx is licensed under the [Apache License 2.0](LICENSE.md), its documentation under
4
+ [Creative Commons - Attribution 4.0 (CC-BY 4.0)](doc/Doc-License.rst). It contains content of other projects, listed
5
+ here with their licenses.
6
+
7
+
8
+ ## Bundled in the package
9
+
10
+ | Content | File | Source | License |
11
+ |---------|------|--------|---------|
12
+ | GitHub's emoji: code points and shortcodes | [`pyTooling/Sphinx/Resources/GitHubEmoji.txt`](pyTooling/Sphinx/Resources/GitHubEmoji.txt) | [github/gemoji](https://github.com/github/gemoji) `db/emoji.json`, v4.1.0 (commit `5476a66`) | MIT, Copyright (c) 2019 GitHub, Inc. - the full license text is in the file's header |
13
+
14
+
15
+ ## Test data
16
+
17
+ Release notes from GitHub release pages, as test fixtures of the Markdown converter. They are in the repository only,
18
+ not in the package.
19
+
20
+ | Content | Files | Source | License of the source project |
21
+ |---------|-------|--------|-------------------------------|
22
+ | GHDL release notes v5.0.1 | [`tests/data/GitHubMarkdown/GHDL-v5.0.1.md`](tests/data/GitHubMarkdown/GHDL-v5.0.1.md) | [ghdl/ghdl releases](https://github.com/ghdl/ghdl/releases/tag/v5.0.1) | GPL-2.0 |
23
+ | OSVVM release notes 2024.07, 2026.05, 2026.09 | [`tests/data/GitHubMarkdown/OSVVM-*.md`](tests/data/GitHubMarkdown/) | [OSVVM/OsvvmLibraries releases](https://github.com/OSVVM/OsvvmLibraries/releases) | Apache-2.0 |
24
+ | pyTooling release notes v8.0.0, v9.0.0 | [`tests/data/GitHubMarkdown/pyTooling-*.md`](tests/data/GitHubMarkdown/) | [pyTooling/pyTooling releases](https://github.com/pyTooling/pyTooling/releases) | Apache-2.0 |
@@ -0,0 +1,213 @@
1
+ Metadata-Version: 2.4
2
+ Name: pyTooling.Sphinx
3
+ Version: 0.1.0rc2
4
+ Summary: More Sphinx roles, directives and domains.
5
+ Home-page: https://GitHub.com/pyTooling/pyTooling.Sphinx
6
+ Author: Patrick Lehmann
7
+ Author-email: Paebbels@gmail.com
8
+ License: Apache-2.0
9
+ Project-URL: Documentation, https://pyTooling.GitHub.io/pyTooling.Sphinx
10
+ Project-URL: Source Code, https://GitHub.com/pyTooling/pyTooling.Sphinx
11
+ Project-URL: Issue Tracker, https://GitHub.com/pyTooling/pyTooling.Sphinx/issues
12
+ Keywords: Sphinx,Sphinx Extension,Documentation,Directive,Role,Domain,docutils
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Topic :: Utilities
16
+ Classifier: Programming Language :: Python :: 3 :: Only
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Programming Language :: Python :: 3.14
20
+ Classifier: Programming Language :: Python :: 3.15
21
+ Classifier: Development Status :: 3 - Alpha
22
+ Requires-Python: >=3.12
23
+ Description-Content-Type: text/markdown
24
+ License-File: LICENSE.md
25
+ License-File: NOTICE.md
26
+ Requires-Dist: pyTooling[pypi]<11.0,>=10.0.0rc2
27
+ Requires-Dist: xmlschema~=4.3
28
+ Requires-Dist: sphinx>=9.1
29
+ Provides-Extra: doc
30
+ Requires-Dist: sphinxcontrib-mermaid~=2.1; extra == "doc"
31
+ Requires-Dist: xmlschema~=4.3; extra == "doc"
32
+ Requires-Dist: sphinx>=9.1; extra == "doc"
33
+ Requires-Dist: docutils_stubs~=0.0.22; extra == "doc"
34
+ Requires-Dist: sphinx_design~=0.7.0; extra == "doc"
35
+ Requires-Dist: sphinx_rtd_theme~=3.1; extra == "doc"
36
+ Requires-Dist: pyTooling[pypi]<11.0,>=10.0.0rc2; extra == "doc"
37
+ Requires-Dist: sphinx~=9.1; extra == "doc"
38
+ Requires-Dist: autoapi>=2.0.1; extra == "doc"
39
+ Requires-Dist: sphinx-copybutton>=0.5.2; extra == "doc"
40
+ Requires-Dist: sphinx_autodoc_typehints~=3.13; extra == "doc"
41
+ Provides-Extra: test
42
+ Requires-Dist: pytest~=9.1; extra == "test"
43
+ Requires-Dist: xmlschema~=4.3; extra == "test"
44
+ Requires-Dist: sphinx>=9.1; extra == "test"
45
+ Requires-Dist: markdown-it-py~=4.2; extra == "test"
46
+ Requires-Dist: pyTooling[pypi]<11.0,>=10.0.0rc2; extra == "test"
47
+ Requires-Dist: mypy[reports]~=2.3; extra == "test"
48
+ Requires-Dist: typing_extensions~=4.16; extra == "test"
49
+ Requires-Dist: pytest-cov~=7.1; extra == "test"
50
+ Requires-Dist: mdit-py-plugins~=0.6; extra == "test"
51
+ Requires-Dist: Coverage~=7.15; extra == "test"
52
+ Requires-Dist: pytest-xdist~=3.8; extra == "test"
53
+ Provides-Extra: reports
54
+ Requires-Dist: pyEDAA.Reports~=0.20.0rc1; extra == "reports"
55
+ Provides-Extra: markdown
56
+ Requires-Dist: markdown-it-py~=4.2; extra == "markdown"
57
+ Requires-Dist: mdit-py-plugins~=0.6; extra == "markdown"
58
+ Provides-Extra: all
59
+ Requires-Dist: sphinxcontrib-mermaid~=2.1; extra == "all"
60
+ Requires-Dist: docutils_stubs~=0.0.22; extra == "all"
61
+ Requires-Dist: sphinx_design~=0.7.0; extra == "all"
62
+ Requires-Dist: markdown-it-py~=4.2; extra == "all"
63
+ Requires-Dist: sphinx~=9.1; extra == "all"
64
+ Requires-Dist: sphinx_autodoc_typehints~=3.13; extra == "all"
65
+ Requires-Dist: xmlschema~=4.3; extra == "all"
66
+ Requires-Dist: pyEDAA.Reports~=0.20.0rc1; extra == "all"
67
+ Requires-Dist: pyTooling[pypi]<11.0,>=10.0.0rc2; extra == "all"
68
+ Requires-Dist: pytest~=9.1; extra == "all"
69
+ Requires-Dist: sphinx>=9.1; extra == "all"
70
+ Requires-Dist: mypy[reports]~=2.3; extra == "all"
71
+ Requires-Dist: typing_extensions~=4.16; extra == "all"
72
+ Requires-Dist: autoapi>=2.0.1; extra == "all"
73
+ Requires-Dist: Coverage~=7.15; extra == "all"
74
+ Requires-Dist: pytest-xdist~=3.8; extra == "all"
75
+ Requires-Dist: sphinx_rtd_theme~=3.1; extra == "all"
76
+ Requires-Dist: pytest-cov~=7.1; extra == "all"
77
+ Requires-Dist: mdit-py-plugins~=0.6; extra == "all"
78
+ Requires-Dist: sphinx-copybutton>=0.5.2; extra == "all"
79
+ Dynamic: author
80
+ Dynamic: author-email
81
+ Dynamic: classifier
82
+ Dynamic: description
83
+ Dynamic: description-content-type
84
+ Dynamic: home-page
85
+ Dynamic: keywords
86
+ Dynamic: license
87
+ Dynamic: license-file
88
+ Dynamic: project-url
89
+ Dynamic: provides-extra
90
+ Dynamic: requires-dist
91
+ Dynamic: requires-python
92
+ Dynamic: summary
93
+
94
+ [![Sourcecode on GitHub](https://img.shields.io/badge/pyTooling-Sphinx-63bf7f?longCache=true&style=flat-square&longCache=true&logo=GitHub)](https://GitHub.com/pyTooling/pyTooling.Sphinx)
95
+ [![Sourcecode License](https://img.shields.io/pypi/l/pyTooling.Sphinx?longCache=true&style=flat-square&logo=Apache&label=code)](LICENSE.md)
96
+ [![Documentation](https://img.shields.io/website?longCache=true&style=flat-square&label=pyTooling.github.io%2FpyTooling.Sphinx&logo=GitHub&logoColor=fff&up_color=blueviolet&up_message=Read%20now%20%E2%9E%9A&url=https%3A%2F%2FpyTooling.github.io%2FpyTooling.Sphinx%2Findex.html)](https://pyTooling.github.io/pyTooling.Sphinx/)
97
+ [![Documentation License](https://img.shields.io/badge/doc-CC--BY%204.0-green?longCache=true&style=flat-square&logo=CreativeCommons&logoColor=fff)](doc/Doc-License.rst)
98
+ [![PyPI](https://img.shields.io/pypi/v/pyTooling.Sphinx?longCache=true&style=flat-square&logo=PyPI&logoColor=FBE072)](https://pypi.org/project/pyTooling.Sphinx/)
99
+ ![PyPI - Status](https://img.shields.io/pypi/status/pyTooling.Sphinx?longCache=true&style=flat-square&logo=PyPI&logoColor=FBE072)
100
+ ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pyTooling.Sphinx?longCache=true&style=flat-square&logo=PyPI&logoColor=FBE072)
101
+ [![GitHub Workflow - Build and Test Status](https://img.shields.io/github/actions/workflow/status/pyTooling/pyTooling.Sphinx/Pipeline.yml?branch=main&longCache=true&style=flat-square&label=build%20and%20test&logo=GitHub%20Actions&logoColor=FFFFFF)](https://GitHub.com/pyTooling/pyTooling.Sphinx/actions/workflows/Pipeline.yml)
102
+ [![Libraries.io status for latest release](https://img.shields.io/librariesio/release/pypi/pyTooling.Sphinx?longCache=true&style=flat-square&logo=Libraries.io&logoColor=fff)](https://libraries.io/github/pyTooling/pyTooling.Sphinx)
103
+ [![Codacy - Quality](https://img.shields.io/codacy/grade/d80355705a634d59835eeb01e8536cce?longCache=true&style=flat-square&logo=Codacy)](https://app.codacy.com/gh/pyTooling/pyTooling.Sphinx/dashboard)
104
+ [![Codacy - Coverage](https://img.shields.io/codacy/coverage/d80355705a634d59835eeb01e8536cce?longCache=true&style=flat-square&logo=Codacy)](https://app.codacy.com/gh/pyTooling/pyTooling.Sphinx/dashboard)
105
+ [![Codecov - Branch Coverage](https://img.shields.io/codecov/c/github/pyTooling/pyTooling.Sphinx?longCache=true&style=flat-square&logo=Codecov)](https://codecov.io/gh/pyTooling/pyTooling.Sphinx)
106
+
107
+ # pyTooling.Sphinx
108
+
109
+ **pyTooling.Sphinx** adds roles and directives to [Sphinx](https://www.sphinx-doc.org/): styled inline text and line
110
+ breaks working in HTML and LaTeX, condensed class interfaces, dependency tables generated from requirements files and
111
+ the package index, badges, schema graphs, trees, lists of abbreviations, and unit test and coverage reports.
112
+
113
+ Other packages build on it: [pyTooling.GitHub](https://GitHub.com/pyTooling/pyTooling.GitHub) contributes the domain
114
+ `ghactions` for GitHub Actions workflows, enabled as the extension `pyTooling.GitHub.Sphinx`.
115
+
116
+ > [!IMPORTANT]
117
+ > pyTooling.Sphinx requires **Python 3.12 or newer**, because it requires Sphinx 9.1 and Sphinx 9.1 does.
118
+
119
+ The extension is enabled in `conf.py`:
120
+
121
+ ```python
122
+ # doc/conf.py
123
+ extensions = [
124
+ ...,
125
+ "pyTooling.Sphinx",
126
+ ]
127
+ ```
128
+
129
+ It links its stylesheet into every HTML page, appends its substitutions to `rst_prolog`, and sets up
130
+ `sphinx.ext.graphviz` for the schema graphs.
131
+
132
+ The domain `report` - unit test, code coverage and documentation coverage reports as tables - reads the reports with
133
+ [pyEDAA.Reports](https://GitHub.com/edaa-org/pyEDAA.Reports), an optional dependency. A project using a report installs
134
+ it with the extra `reports`:
135
+
136
+ ```bash
137
+ pip install pyTooling.Sphinx[reports]
138
+ ```
139
+
140
+
141
+ ## Roles and Directives
142
+
143
+ ### Roles
144
+
145
+ * [Style roles][Roles/Style] - `:red:`, `:underline:`, `:deletion:` and more: CSS classes on inline text, with the
146
+ stylesheet giving them their meaning.
147
+ * [Inline Python code][Roles/PythonCode] - `:pycode:`, syntax-highlighted inline code.
148
+ * [Line break and horizontal rule][Roles/Breaks] - `|br|` and `|hr|`, in HTML and LaTeX.
149
+
150
+ ### Directives
151
+
152
+ * [condensed-class][Directives/CondensedClass] - A class' public interface as one code block, parsed from its source.
153
+ * [dependency-table][Directives/DependencyTable] - A project's dependencies with versions and licenses, from its
154
+ requirements files and the package index.
155
+ * [jsonschema-graph][Directives/JSONSchemaGraph] - Planned: a JSON schema as a Graphviz graph.
156
+ * [xmlschema-graph][Directives/XMLSchemaGraph] - An XML schema as a Graphviz graph, drawn from the schema file.
157
+ * [shields][Directives/Shields] - A project's badges from shields.io, in rows.
158
+ * [tree][Directives/Tree] - A hierarchy, written as an indented list, drawn as a tree with foldable nodes.
159
+ * [abbreviations][Directives/Abbreviations] - A list of abbreviations, referred to by `:acs:`, `:acl:`, `:acf:` and
160
+ their plurals; in HTML, a short form explains itself on hover.
161
+
162
+ ### Directives of domain `report` (extra `reports`)
163
+
164
+ * [report:unittest-summary][Directives/UnittestSummary] - A unit test report in JUnit XML or pyTooling's XML format, per
165
+ testsuite and testcase; optionally with a page per testsuite and testcase, referred to by the roles `:ts:` and `:tc:`.
166
+ * [report:code-coverage][Directives/CodeCoverage] - A code coverage report in Cobertura XML or coverage.py's JSON
167
+ format, per directory and source file, and a legend of its coverage levels; optionally with a page per directory and
168
+ source file showing a file's highlighted source, each line marked by its coverage, referred to by the role `:cov:`.
169
+ * [report:doc-coverage][Directives/DocCoverage] - A package's documentation coverage, per package and module, and a
170
+ legend of its coverage levels.
171
+
172
+ [Roles/Style]: https://pyTooling.github.io/pyTooling.Sphinx/Roles/Style.html
173
+ [Roles/PythonCode]: https://pyTooling.github.io/pyTooling.Sphinx/Roles/PythonCode.html
174
+ [Roles/Breaks]: https://pyTooling.github.io/pyTooling.Sphinx/Roles/Breaks.html
175
+ [Directives/CondensedClass]: https://pyTooling.github.io/pyTooling.Sphinx/Directives/CondensedClass.html
176
+ [Directives/DependencyTable]: https://pyTooling.github.io/pyTooling.Sphinx/Directives/DependencyTable.html
177
+ [Directives/JSONSchemaGraph]: https://pyTooling.github.io/pyTooling.Sphinx/Directives/JSONSchemaGraph.html
178
+ [Directives/XMLSchemaGraph]: https://pyTooling.github.io/pyTooling.Sphinx/Directives/XMLSchemaGraph.html
179
+ [Directives/Shields]: https://pyTooling.github.io/pyTooling.Sphinx/Directives/Shields.html
180
+ [Directives/Tree]: https://pyTooling.github.io/pyTooling.Sphinx/Directives/Tree.html
181
+ [Directives/Abbreviations]: https://pyTooling.github.io/pyTooling.Sphinx/Directives/Abbreviations.html
182
+ [Directives/UnittestSummary]: https://pyTooling.github.io/pyTooling.Sphinx/Directives/UnittestSummary.html
183
+ [Directives/CodeCoverage]: https://pyTooling.github.io/pyTooling.Sphinx/Directives/CodeCoverage.html
184
+ [Directives/DocCoverage]: https://pyTooling.github.io/pyTooling.Sphinx/Directives/DocCoverage.html
185
+
186
+
187
+ ## Consumers
188
+
189
+ This layer is used by:
190
+
191
+ * [pyTooling.GitHub](https://GitHub.com/pyTooling/pyTooling.GitHub) - its Sphinx domain `ghactions` builds on this
192
+ extension, and its documentation uses it.
193
+ * 🚧 [pyTooling](https://GitHub.com/pyTooling/pyTooling) - its documentation, which still uses pyTooling's own copy of
194
+ this extension.
195
+
196
+
197
+ ## Contributors
198
+
199
+ * [Patrick Lehmann](https://GitHub.com/Paebbels) (Maintainer)
200
+ * [and more...](https://GitHub.com/pyTooling/pyTooling.Sphinx/graphs/contributors)
201
+
202
+
203
+ ## License
204
+
205
+ This Python package (source code) is licensed under [Apache License 2.0](LICENSE.md).
206
+ The accompanying documentation is licensed under [Creative Commons - Attribution 4.0 (CC-BY 4.0)](doc/Doc-License.rst).
207
+ Content of other projects - e.g. GitHub's emoji table from github/gemoji (MIT) - is listed with its license in
208
+ [NOTICE.md](NOTICE.md).
209
+
210
+
211
+ -------------------------
212
+
213
+ SPDX-License-Identifier: Apache-2.0
@@ -0,0 +1,120 @@
1
+ [![Sourcecode on GitHub](https://img.shields.io/badge/pyTooling-Sphinx-63bf7f?longCache=true&style=flat-square&longCache=true&logo=GitHub)](https://GitHub.com/pyTooling/pyTooling.Sphinx)
2
+ [![Sourcecode License](https://img.shields.io/pypi/l/pyTooling.Sphinx?longCache=true&style=flat-square&logo=Apache&label=code)](LICENSE.md)
3
+ [![Documentation](https://img.shields.io/website?longCache=true&style=flat-square&label=pyTooling.github.io%2FpyTooling.Sphinx&logo=GitHub&logoColor=fff&up_color=blueviolet&up_message=Read%20now%20%E2%9E%9A&url=https%3A%2F%2FpyTooling.github.io%2FpyTooling.Sphinx%2Findex.html)](https://pyTooling.github.io/pyTooling.Sphinx/)
4
+ [![Documentation License](https://img.shields.io/badge/doc-CC--BY%204.0-green?longCache=true&style=flat-square&logo=CreativeCommons&logoColor=fff)](doc/Doc-License.rst)
5
+ [![PyPI](https://img.shields.io/pypi/v/pyTooling.Sphinx?longCache=true&style=flat-square&logo=PyPI&logoColor=FBE072)](https://pypi.org/project/pyTooling.Sphinx/)
6
+ ![PyPI - Status](https://img.shields.io/pypi/status/pyTooling.Sphinx?longCache=true&style=flat-square&logo=PyPI&logoColor=FBE072)
7
+ ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pyTooling.Sphinx?longCache=true&style=flat-square&logo=PyPI&logoColor=FBE072)
8
+ [![GitHub Workflow - Build and Test Status](https://img.shields.io/github/actions/workflow/status/pyTooling/pyTooling.Sphinx/Pipeline.yml?branch=main&longCache=true&style=flat-square&label=build%20and%20test&logo=GitHub%20Actions&logoColor=FFFFFF)](https://GitHub.com/pyTooling/pyTooling.Sphinx/actions/workflows/Pipeline.yml)
9
+ [![Libraries.io status for latest release](https://img.shields.io/librariesio/release/pypi/pyTooling.Sphinx?longCache=true&style=flat-square&logo=Libraries.io&logoColor=fff)](https://libraries.io/github/pyTooling/pyTooling.Sphinx)
10
+ [![Codacy - Quality](https://img.shields.io/codacy/grade/d80355705a634d59835eeb01e8536cce?longCache=true&style=flat-square&logo=Codacy)](https://app.codacy.com/gh/pyTooling/pyTooling.Sphinx/dashboard)
11
+ [![Codacy - Coverage](https://img.shields.io/codacy/coverage/d80355705a634d59835eeb01e8536cce?longCache=true&style=flat-square&logo=Codacy)](https://app.codacy.com/gh/pyTooling/pyTooling.Sphinx/dashboard)
12
+ [![Codecov - Branch Coverage](https://img.shields.io/codecov/c/github/pyTooling/pyTooling.Sphinx?longCache=true&style=flat-square&logo=Codecov)](https://codecov.io/gh/pyTooling/pyTooling.Sphinx)
13
+
14
+ # pyTooling.Sphinx
15
+
16
+ **pyTooling.Sphinx** adds roles and directives to [Sphinx](https://www.sphinx-doc.org/): styled inline text and line
17
+ breaks working in HTML and LaTeX, condensed class interfaces, dependency tables generated from requirements files and
18
+ the package index, badges, schema graphs, trees, lists of abbreviations, and unit test and coverage reports.
19
+
20
+ Other packages build on it: [pyTooling.GitHub](https://GitHub.com/pyTooling/pyTooling.GitHub) contributes the domain
21
+ `ghactions` for GitHub Actions workflows, enabled as the extension `pyTooling.GitHub.Sphinx`.
22
+
23
+ > [!IMPORTANT]
24
+ > pyTooling.Sphinx requires **Python 3.12 or newer**, because it requires Sphinx 9.1 and Sphinx 9.1 does.
25
+
26
+ The extension is enabled in `conf.py`:
27
+
28
+ ```python
29
+ # doc/conf.py
30
+ extensions = [
31
+ ...,
32
+ "pyTooling.Sphinx",
33
+ ]
34
+ ```
35
+
36
+ It links its stylesheet into every HTML page, appends its substitutions to `rst_prolog`, and sets up
37
+ `sphinx.ext.graphviz` for the schema graphs.
38
+
39
+ The domain `report` - unit test, code coverage and documentation coverage reports as tables - reads the reports with
40
+ [pyEDAA.Reports](https://GitHub.com/edaa-org/pyEDAA.Reports), an optional dependency. A project using a report installs
41
+ it with the extra `reports`:
42
+
43
+ ```bash
44
+ pip install pyTooling.Sphinx[reports]
45
+ ```
46
+
47
+
48
+ ## Roles and Directives
49
+
50
+ ### Roles
51
+
52
+ * [Style roles][Roles/Style] - `:red:`, `:underline:`, `:deletion:` and more: CSS classes on inline text, with the
53
+ stylesheet giving them their meaning.
54
+ * [Inline Python code][Roles/PythonCode] - `:pycode:`, syntax-highlighted inline code.
55
+ * [Line break and horizontal rule][Roles/Breaks] - `|br|` and `|hr|`, in HTML and LaTeX.
56
+
57
+ ### Directives
58
+
59
+ * [condensed-class][Directives/CondensedClass] - A class' public interface as one code block, parsed from its source.
60
+ * [dependency-table][Directives/DependencyTable] - A project's dependencies with versions and licenses, from its
61
+ requirements files and the package index.
62
+ * [jsonschema-graph][Directives/JSONSchemaGraph] - Planned: a JSON schema as a Graphviz graph.
63
+ * [xmlschema-graph][Directives/XMLSchemaGraph] - An XML schema as a Graphviz graph, drawn from the schema file.
64
+ * [shields][Directives/Shields] - A project's badges from shields.io, in rows.
65
+ * [tree][Directives/Tree] - A hierarchy, written as an indented list, drawn as a tree with foldable nodes.
66
+ * [abbreviations][Directives/Abbreviations] - A list of abbreviations, referred to by `:acs:`, `:acl:`, `:acf:` and
67
+ their plurals; in HTML, a short form explains itself on hover.
68
+
69
+ ### Directives of domain `report` (extra `reports`)
70
+
71
+ * [report:unittest-summary][Directives/UnittestSummary] - A unit test report in JUnit XML or pyTooling's XML format, per
72
+ testsuite and testcase; optionally with a page per testsuite and testcase, referred to by the roles `:ts:` and `:tc:`.
73
+ * [report:code-coverage][Directives/CodeCoverage] - A code coverage report in Cobertura XML or coverage.py's JSON
74
+ format, per directory and source file, and a legend of its coverage levels; optionally with a page per directory and
75
+ source file showing a file's highlighted source, each line marked by its coverage, referred to by the role `:cov:`.
76
+ * [report:doc-coverage][Directives/DocCoverage] - A package's documentation coverage, per package and module, and a
77
+ legend of its coverage levels.
78
+
79
+ [Roles/Style]: https://pyTooling.github.io/pyTooling.Sphinx/Roles/Style.html
80
+ [Roles/PythonCode]: https://pyTooling.github.io/pyTooling.Sphinx/Roles/PythonCode.html
81
+ [Roles/Breaks]: https://pyTooling.github.io/pyTooling.Sphinx/Roles/Breaks.html
82
+ [Directives/CondensedClass]: https://pyTooling.github.io/pyTooling.Sphinx/Directives/CondensedClass.html
83
+ [Directives/DependencyTable]: https://pyTooling.github.io/pyTooling.Sphinx/Directives/DependencyTable.html
84
+ [Directives/JSONSchemaGraph]: https://pyTooling.github.io/pyTooling.Sphinx/Directives/JSONSchemaGraph.html
85
+ [Directives/XMLSchemaGraph]: https://pyTooling.github.io/pyTooling.Sphinx/Directives/XMLSchemaGraph.html
86
+ [Directives/Shields]: https://pyTooling.github.io/pyTooling.Sphinx/Directives/Shields.html
87
+ [Directives/Tree]: https://pyTooling.github.io/pyTooling.Sphinx/Directives/Tree.html
88
+ [Directives/Abbreviations]: https://pyTooling.github.io/pyTooling.Sphinx/Directives/Abbreviations.html
89
+ [Directives/UnittestSummary]: https://pyTooling.github.io/pyTooling.Sphinx/Directives/UnittestSummary.html
90
+ [Directives/CodeCoverage]: https://pyTooling.github.io/pyTooling.Sphinx/Directives/CodeCoverage.html
91
+ [Directives/DocCoverage]: https://pyTooling.github.io/pyTooling.Sphinx/Directives/DocCoverage.html
92
+
93
+
94
+ ## Consumers
95
+
96
+ This layer is used by:
97
+
98
+ * [pyTooling.GitHub](https://GitHub.com/pyTooling/pyTooling.GitHub) - its Sphinx domain `ghactions` builds on this
99
+ extension, and its documentation uses it.
100
+ * 🚧 [pyTooling](https://GitHub.com/pyTooling/pyTooling) - its documentation, which still uses pyTooling's own copy of
101
+ this extension.
102
+
103
+
104
+ ## Contributors
105
+
106
+ * [Patrick Lehmann](https://GitHub.com/Paebbels) (Maintainer)
107
+ * [and more...](https://GitHub.com/pyTooling/pyTooling.Sphinx/graphs/contributors)
108
+
109
+
110
+ ## License
111
+
112
+ This Python package (source code) is licensed under [Apache License 2.0](LICENSE.md).
113
+ The accompanying documentation is licensed under [Creative Commons - Attribution 4.0 (CC-BY 4.0)](doc/Doc-License.rst).
114
+ Content of other projects - e.g. GitHub's emoji table from github/gemoji (MIT) - is listed with its license in
115
+ [NOTICE.md](NOTICE.md).
116
+
117
+
118
+ -------------------------
119
+
120
+ SPDX-License-Identifier: Apache-2.0