8000 Publish documentation on Read the Docs by rafatahmed · Pull Request #32 · rafatahmed/Flahax · GitHub
[go: up one dir, main page]

Skip to content

Publish documentation on Read the Docs - #32

Merged
rafatahmed merged 9 commits into
mainfrom
docs/readthedocs-site
Oct 20, 2026
Merged

rafatahmed merged 9 commits into
mainfrom
docs/readthedocs-site

Conversation

@rafatahmed
Copy link
Copy Markdown
Owner

Publishes the reader-facing FlahaX docs at https://flahax.readthedocs.io/, built from a new docs/site/ folder with Sphinx 8.1.3, MyST 4.0.1 and the furo theme.

What changes

  • Site in docs/site/. Sections: User guide, For growers and agronomists, Models and chemistry, Evidence and audits, API reference, Changelog. Reader pages are moved with git mv, so each page still has one source.
  • Shipped files are included, not copied. USER_GUIDE.md, API_REFERENCE.md and CHANGELOG.md come in through MyST {include}. Their cross-links are rewritten at build time, so the files in the package don't change.
  • "Moved" stubs at old paths. They cover every docs/*.md link in the v0.1.0–v0.4.0 READMEs and every old path named in shipped text (docstrings, CLI help, provenance strings). Each stub points to https://flahax.readthedocs.io/.
  • Maintainer-only pages stay in docs/ and are not on the site: roadmaps, status, release readiness, publishing, the landscape comparison and SWOT, design notes, history and schemas. docs/index.md becomes the maintainer index.
  • docs/superpowers/ is no longer in the repo. It's gitignored, untracked and pruned from the sdist.
  • Build checks: .readthedocs.yaml treats warnings as errors and a new CI docs job runs the same build. tests/test_docs_site.py checks the config, the pinned docs requirements, that nothing private ends up in docs/site/, and that the stubs exist.
  • Release wiring: the Documentation URL in pyproject.toml points to https://flahax.readthedocs.io/. docs/publishing.md records the Read the Docs dashboard settings, and the changelog has an Unreleased line.

No new scientific content. The grower page is new, and every statement on it comes from an existing docs page. The docs dependencies live only in docs/site/requirements.txt, so flahax still has zero runtime dependencies.

Verification

  • Full unit suite: 296 tests OK. It ran before the last small fixes, which were checked with tests.test_docs_site and tests.test_release_hygiene.
  • Docs build: sphinx -W --keep-going gives zero warnings, also from a clean export with no local-only files.
  • Other checks passed: tools/verify_distribution.py, generate_api_reference.py --check, compileall and git diff --check.

After merge (owner)

  • Read the Docs dashboard:
    • set latest = main and turn PR previews on;
    • leave tags v0.1.0–v0.4.0 inactive and add a v* automation rule from the next release;
    • the default version stays latest until then.
  • README.md doc links: update them to the site in a separate change.
  • docs/landscape-comparison-swot.md:231: it links into docs/superpowers/, so remove that link before committing pending edits to the file.

@rafatahmed rafatahmed self-assigned this Oct 20, 2026
@rafatahmed
rafatahmed force-pushed the docs/readthedocs-site branch from aac30fc to aaba2a2 Compare October 20, 2026 06:02
@rafatahmed
rafatahmed merged commit 1acaf21 into main Oct 20, 2026
5 checks passed
@rafatahmed
rafatahmed deleted the docs/readthedocs-site branch October 20, 2026 06:23
rafatahmed added a commit that referenced this pull request Nov 7, 2026
Publish documentation on Read the Docs
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

0