Skip to content

docs: one Sphinx site for modpoll, modsim and modpoll-wot (DOC-02) - #152

Merged
gavinying merged 1 commit into
v2from
doc-02-site
Nov 15, 2026
Merged

gavinying merged 1 commit into
v2from
doc-02-site

Conversation

@gavinying

Copy link
Copy Markdown
Collaborator

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

  • Guides by task (installation, quickstart, reading a device, simulating a device, verification reports, migrating from v1 CSV). The reference has a section per tool: command-line pages generated by sphinx-argparse 0.6, the changelogs included from each CHANGELOG.md, and modpoll-wot's profile.md and CONTRACT.md included.
  • The seven modpoll RST pages are converted to Markdown, and modsim's guide pages are moved in. modules.md, MkDocs and pandoc are removed.
  • The READMEs now hold install, one command and links. Their content moved to the site; development notes moved to CONTRIBUTING.
  • Redirects keep the old /v2/*.html URLs that release notes link to.

Dependencies: a root docs dependency 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)

  • Pull requests and v2 builds: docs (warnings are errors) and docs links (linkcheck).
  • Releases: each release workflow calls it with its tag. The docs publish job 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.
  • The release guard now requires the docs check for all three packages, replacing modsim docs. The assemble-docs.py script, its test and the setup-pandoc action are removed.

Other changes

  • modpoll-wot: the parser moves into get_parser() so the site can document it.
  • modpoll: the --upload help says report-DATE.json instead of report-*.json, because the RST parser reads the asterisk as emphasis.
  • The modsim and modpoll-wot PyPI Documentation links now point to /modpoll/v2/ and take effect with their next releases.

Verification (local):

  • sphinx-build -W builds cleanly and linkcheck passes. Two historical modsim compare links point at tags that never existed and are ignored.
  • modpoll: 254 tests pass. modpoll-wot: 141 tests pass. test_release.py: 11 tests pass.
  • The Docker install step and uv sync --all-groups --package … work on Python 3.10 and 3.12.

Not in this PR:

  • Slice 2: the quickstart based on SIM-09, the --report flow page and the modpoll-wot API reference.
  • Running the quickstart commands in integration/.
  • The redirect page on the archived modsim site.

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.
@gavinying
gavinying merged commit 0326714 into v2 Nov 15, 2026
23 checks passed
@gavinying
gavinying deleted the doc-02-site branch November 15, 2026 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant