Repository navigation
docs: one Sphinx site for modpoll, modsim and modpoll-wot (DOC-02) - #152
Merged
Merged
Conversation
The site is built from docs/ at the workspace root with Sphinx, MyST and Furo, in a docs dependency group that needs Python 3.13 (Sphinx 9.2). Guides are organized by task; the reference has a section per tool, with command-line pages generated from argparse, the changelogs and the modpoll-wot profile and contract included from the packages. - Convert the seven modpoll RST pages to Markdown and move in modsim's guide pages; drop pandoc, MkDocs and the modsim modules page. - Shrink the READMEs to install, one command and links; move their content to the site and development notes to CONTRIBUTING. - Add a docs workflow: pull requests and v2 build with warnings as errors and check links; each package release builds from its tag and publishes /v2/ only, and a modpoll-wot release also publishes /vocab/wot-modbus/ from the same checkout instead of downloading it. The release guard requires the docs check for all three packages. - Redirect the earlier /v2/ page URLs; point the modsim and modpoll-wot PyPI documentation links to the new site.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DOC-02 slices 0 and 1: one documentation site for the three tools, built from
docs/at the workspace root with Sphinx 9.2, MyST and Furo.Site
CHANGELOG.md, and modpoll-wot'sprofile.mdandCONTRACT.mdincluded.modules.md, MkDocs and pandoc are removed./v2/*.htmlURLs that release notes link to.Dependencies: a root
docsdependency group limited to Python 3.13 or later with[tool.uv.dependency-groups](Sphinx 9.2 requires 3.13); the packages still resolve for 3.10–3.14. The per-package docs groups are removed.Workflow (
docs.yml)docs(warnings are errors) anddocs links(linkcheck).docs publishjob builds from the tag and replaces only/v2/on gh-pages; the root and/1.x/are left alone. A modpoll-wot release also copies/vocab/wot-modbus/from the same checkout instead of downloading it from raw.githubusercontent. The push retries on rejection, so the three releases of one batch can publish at the same time.docscheck for all three packages, replacingmodsim docs. Theassemble-docs.pyscript, its test and the setup-pandoc action are removed.Other changes
get_parser()so the site can document it.--uploadhelp saysreport-DATE.jsoninstead ofreport-*.json, because the RST parser reads the asterisk as emphasis.Documentationlinks now point to/modpoll/v2/and take effect with their next releases.Verification (local):
sphinx-build -Wbuilds cleanly and linkcheck passes. Two historical modsim compare links point at tags that never existed and are ignored.test_release.py: 11 tests pass.uv sync --all-groups --package …work on Python 3.10 and 3.12.Not in this PR:
--reportflow page and the modpoll-wot API reference.integration/.