Repository navigation
Restructure the documentation - #8
Conversation
…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>
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| CodeStyle | 2 minor |
🟢 Metrics 0 complexity · 0 duplication
Metric Results Complexity 0 Duplication 0
🟢 Coverage ∅ diff coverage · +0.00% coverage variation
Metric Results Coverage variation ✅ +0.00% coverage variation (-1.00%) Diff coverage ✅ ∅ diff coverage 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.
Codecov Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
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>
* 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>
Restructures the documentation along the review of the generated pages, as pyTooling's documentation is structured.
Documentation
conf.pyare still pyTooling's.shieldsdirective instead ofshields.inc, including the Codacy badges (project IDd80355705a634d59835eeb01e8536cce); the README got them too.conf.pyand what enabling it does.condensed-class,dependency-table,jsonschema-graph(placeholder: planned, with a TODO),xmlschema-graph,shields. The Extension page is split into these pages; labels areDIR/<page>for a directive andROLE/<page>for a role.sphinx_reportsand its configuration, reading the reportsCompletePipelinehands to the documentation job; the code coverage and type check pages are replaced by their HTML reports on GitHub Pages, as in pyTooling.shieldson the landing page,dependency-tableon the Dependencies page (package, unit testing, documentation; with the license overrides of pyTooling's file this repository's tables need, plussphinxcontrib-jqueryas 0BSD from its LICENCE file, andaiohttpfor whenpyTooling[pypi]comes from PyPI),condensed-classandxmlschema-graphrender their examples, and the roles and|br|are used throughout.condensed-classexample:pyTooling.GenericPath.URL.Host- derived from a mixin, with__init__(), the read-only propertiesHostnameandPort, the methodCopy()and__str__().xmlschema-graphexample: drawsTestReport-v0.1.xsd(copied from pyTooling's resources next to the page).conf.pygave AutoAPI'smoduletemplate only to sub-directories; pyTooling.Sphinx's modules are files, so they got thepackagetemplate 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_reportsadds 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
xmlschema-graph).