Skip to content

docs: fix Read the Docs build configuration - #306

Merged
hemna merged 2 commits into
masterfrom
docs/readthedocs-build
Sep 20, 2026
Merged

hemna merged 2 commits into
masterfrom
docs/readthedocs-build

Conversation

@hemna

@hemna hemna commented Sep 20, 2026

Copy link
Copy Markdown
Collaborator

The readthedocs.io build configuration was broken (verified against the repo tree):

  • sphinx.configuration: docs/conf.py — that file does not exist. The Sphinx config is docs/source/conf.py (which is what the Makefile and the tox docs env use).
  • python.install: requirements: dev-requirements.txt — that file does not exist either. Replaced with a pip install of the project itself plus its docs extras, which define the actual Sphinx dependencies (Sphinx, myst-parser, sphinx-rtd-theme, sphinx-copybutton, alabaster) in pyproject.toml.

Also:

  • install.rst said 'Python 3.6 or later'; pyproject.toml has requires-python = ">=3.11".
  • Regenerated docs/source/apidoc with sphinx-apidoc: the committed API docs were missing the new aprsd.cmds.export_config and aprsd.cmds.export_plugins modules (CI regenerates apidoc on the fly, so only the committed copy RTD uses was stale).

Local verification: tox -edocs (runs clean_docs.py, prepare_changelog.py, fix_readme_rst.py, sphinx-apidoc, sphinx-build).

- .readthedocs.yaml pointed at docs/conf.py (does not exist); the Sphinx
  config is docs/source/conf.py
- .readthedocs.yaml installed dev-requirements.txt (does not exist);
  install the project with its docs extras instead (Sphinx, myst-parser,
  sphinx-rtd-theme, sphinx-copybutton, alabaster)
- install.rst: Python 3.6 or later -> 3.11 (pyproject requires-python >=3.11)
- Regenerate docs/source/apidoc (was missing the new aprsd.cmds.export_config
  and aprsd.cmds.export_plugins modules)
The 5.0.1 section uses a '##### Tests' category heading that
prepare_changelog.py did not recognize, so the generated
docs/source/changelog.md drifted from the committed file and the
Sphinx build warns 'Non-consecutive header level increase; H3 to H5'.
Adding Tests to the category list keeps the generated changelog in
sync and removes the warning.
@hemna
hemna merged commit 32ee12b into master Sep 20, 2026
8 checks passed
@hemna
hemna deleted the docs/readthedocs-build branch September 20, 2026 23:01
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