Skip to content

Restructure the documentation - #8

Merged
Paebbels merged 4 commits into
devfrom
claude/docs-structure
Oct 3, 2026
Merged

Paebbels merged 4 commits into
devfrom
claude/docs-structure

Conversation

@pytooling-claude

@pytooling-claude pytooling-claude Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Restructures the documentation along the review of the generated pages, as pyTooling's documentation is structured.

Documentation

  • Landing page
    • No pyTooling logo - pyTooling.Sphinx has no logo of its own yet. The sidebar logo and the favicon in conf.py are still pyTooling's.
    • The badges come from the extension's own shields directive instead of shields.inc, including the Codacy badges (project ID d80355705a634d59835eeb01e8536cce); the README got them too.
    • After the summary: the Python 3.12 requirement, then the setup in conf.py and what enabling it does.
    • An overview of the roles and directives, linking their pages.
    • Competing Solutions (moved from the Extension page) above the contributors.
  • Navigation
    • Introduction: News, Installation, Dependencies.
    • Roles (new toctree): Style roles, Inline Python code, Line break and horizontal rule.
    • Directives (new toctree): condensed-class, dependency-table, jsonschema-graph (placeholder: planned, with a TODO), xmlschema-graph, shields. The Extension page is split into these pages; labels are DIR/<page> for a directive and ROLE/<page> for a role.
    • References and Reports: Unittest Summary Report, Code Coverage Report, Code Coverage Summary, Doc. Coverage Report, Static Type Check Report - with sphinx_reports and its configuration, reading the reports CompletePipeline hands to the documentation job; the code coverage and type check pages are replaced by their HTML reports on GitHub Pages, as in pyTooling.
    • Appendix: Glossary (new: badge, directive, DOT, entrypoint, extension, package index, record, role, shield, SPDX license expression, substitution) and TODOs.
  • The documentation uses its own extension: shields on the landing page, dependency-table on the Dependencies page (package, unit testing, documentation; with the license overrides of pyTooling's file this repository's tables need, plus sphinxcontrib-jquery as 0BSD from its LICENCE file, and aiohttp for when pyTooling[pypi] comes from PyPI), condensed-class and xmlschema-graph render their examples, and the roles and |br| are used throughout.
  • condensed-class example: pyTooling.GenericPath.URL.Host - derived from a mixin, with __init__(), the read-only properties Hostname and Port, the method Copy() and __str__().
  • xmlschema-graph example: draws TestReport-v0.1.xsd (copied from pyTooling's resources next to the page).
  • News: v0.1.0, the first release, formerly developed as part of pyTooling v10.0.0.
  • The class reference documents the classes now (eb60c6f). conf.py gave AutoAPI's module template only to sub-directories; pyTooling.Sphinx's modules are files, so they got the package template without :members:, and every module page was empty - no class could be referenced. Found through the unresolved references of this PR's pages.

Warnings: the CI build runs with unresolved references reported. With the classes documented, it reports ~224, nearly all references to types outside this package - docutils.nodes.*, packaging, pyTooling's exceptions and type aliases (pyTooling's own build has 2981 of these kinds). Before, it had 16, because the class reference was empty. sphinx_reports adds one per configuration value ("Failed to convert typing.Dict to a frozenset"), a bug of sphinx-reports every project using it gets.


Related Issues and Pull-Requests

claude-code and others added 2 commits October 3, 2026 22:48
…ocumentation

* News, Dependencies (rendered with the extension's own 'dependency-table', with pyTooling's license overrides plus
  sphinxcontrib-jquery), Glossary and TODOs, as in pyTooling.
* Report pages: unit test summary, code coverage report and summary, documentation coverage, static type check
  report - 'sphinx_reports' reads the reports the pipeline hands to the documentation job.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
* Landing page: the extension's own 'shields' directive instead of a shields include, no pyTooling logo, the Python
  3.12 requirement and the setup in conf.py after the summary, an overview of the roles and directives, and the
  competing solutions above the contributors.
* The Extension page is split: a toctree 'Roles' (style roles, inline Python code, line break and horizontal rule)
  and a toctree 'Directives' (condensed-class, dependency-table, jsonschema-graph - planned -, xmlschema-graph,
  shields).
* condensed-class shows pyTooling.GenericPath.URL.Host: a derived class with an initializer, read-only properties, a
  method and __str__(). xmlschema-graph renders a schema with the extension itself.
* Introduction: News, Installation, Dependencies; Appendix: Glossary and TODOs; References and Reports: the reports.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
@pytooling-claude
pytooling-claude Bot requested a review from Paebbels as a code owner October 3, 2026 22:48
@pytooling-claude pytooling-claude Bot added the Documentation Improvements or additions to documentation label Oct 3, 2026
@codacy-production

codacy-production Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Not up to standards ⛔

🔴 Issues 2 minor

Alerts:
⚠ 2 issues (≤ 0 issues of at least minor severity)

Results:
2 new issues

Category Results
CodeStyle 2 minor

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

🟢 Coverage ∅ diff coverage · +0.00% coverage variation

Metric Results
Coverage variation ✅ +0.00% coverage variation (-1.00%)
Diff coverage ✅ ∅ diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (14e0729) 1137 656 57.70%
Head commit (0efb0f4) 1137 (+0) 656 (+0) 57.70% (+0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#8) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Comment thread doc/Directives/JSONSchemaGraph.rst Resolved
@codecov

codecov Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.08%. Comparing base (14e0729) to head (0efb0f4).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev       #8   +/-   ##
=======================================
  Coverage   57.08%   57.08%           
=======================================
  Files           7        7           
  Lines        1137     1137           
  Branches      188      188           
=======================================
  Hits          649      649           
  Misses        481      481           
  Partials        7        7           
Flag Coverage Δ
unittests 57.08% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

AutoAPI gave the 'module' template only to the sub-directories of pyTooling/Sphinx. Its modules are files, so they
got the 'package' template, which has no ':members:' - the class reference documented no class, and no reference
to one resolved.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
Comment thread doc/Dependency.PackageOverrides.yaml Resolved
Comment thread doc/Dependency.PackageOverrides.yaml Resolved
Comment thread doc/Dependency.PackageOverrides.yaml Resolved
Comment thread doc/Dependency.PackageOverrides.yaml Resolved
Comment thread doc/Dependency.PackageOverrides.yaml Resolved
Comment thread doc/Dependency.PackageOverrides.yaml Resolved
Comment thread doc/index.rst Resolved
Comment thread doc/News.rst Resolved
Comment thread doc/News.rst Resolved
Comment thread doc/requirements.txt Resolved
* Labels: 'DIR/<page>' for a directive, 'ROLE/<page>' for a role, instead of 'DOC/Sphinx/...'.
* License overrides: only the packages this repository's dependency tables show, and aiohttp, which they show once
  pyTooling[pypi] comes from PyPI.
* Codacy: project ID d80355705a634d59835eeb01e8536cce, the badges 'codacy-quality' and 'codacy-coverage' on the
  landing page and in the README, linking to Codacy's dashboard.
* News: the first release, formerly developed as part of pyTooling v10.0.0 (linked); no change for a name that was
  never released.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
@Paebbels
Paebbels merged commit 2b5020a into dev Oct 3, 2026
52 of 53 checks passed
@Paebbels
Paebbels deleted the claude/docs-structure branch October 3, 2026 23:21
This was referenced Oct 17, 2026
@pytooling-claude pytooling-claude Bot mentioned this pull request Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants