Skip to content

Move the README's docs into docs/, and keep a short README - #223

Merged
jasperblues merged 3 commits into
mainfrom
docs-folder
Oct 28, 2026
Merged

jasperblues merged 3 commits into
mainfrom
docs-folder

Conversation

@jasperblues

@jasperblues jasperblues commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

The README's docs move into docs/, one file per ## section, and the README becomes a short one that stands alone on PyPI. drivine.org/py is built from docs/ once drivine's import-readmes.mjs reads it, and until then it still reads README.md, so the PRs can merge in any order.

  • docs/00-introduction.md to docs/14-license.md: the old README's text, verbatim. Anchor links between pages point at the page that holds the anchor now, and repository links are relative to docs/.

  • docs/README.md: an index for GitHub.

  • README.md: the title, badges, a few lines on what it is, install, a short quick start, and links. Every link is absolute, so the page works on PyPI (readme = "README.md"; uv build builds, and the wheel's metadata has the new README).

  • docs/design.md and the two Oracle crash notes stay where they are. Code comments and upstream bug reports link to them. The site import reads only 00-introduction.md and the NN-*.md pages, so it skips them.

  • Repointed: sample/README.md's link to the model file, and two test comments that said "as the README says". tests/docs/test_readme.py now runs the Python blocks from the docs pages, and adds a test that runs the new README's quick start.

  • scripts/release_version.py's REFERENCES now also moves the "0.3 is an alpha release" line in docs/00-introduction.md, beside the short README's, so each release keeps both current. Its tests, RELEASING.md and Prepare release's comment say so.

Check

Joining 00-introduction.md and the NN-*.md pages in order, with one newline between files, and undoing the link rewrites (NN-slug.md#a → #a, ../x → x):

PASS: 15 files reproduce README.md after its title line, byte for byte (67508 bytes)

This is against the README on main after the 0.3.0 release, whose "0.3 is an alpha release" is now in docs/00-introduction.md and the short README.

Gate

  • ruff check and ruff format --check: clean.
  • pyright: 0 errors.
  • scripts/unasync.py --check: passes.
  • pytest tests/unit -q: 760 passed.
  • uv build: builds the sdist and the wheel.

The tests in tests/docs need a database, so they weren't run locally. CI runs them.

Fixes #226

…hort README

The website builds drivine.org/py from docs/. design.md and the two Oracle crash notes stay where they are,
linked from code and from upstream reports; the import reads only 00-introduction.md and the NN-*.md pages.
@jasperblues
jasperblues merged commit 0a3a8be into main Oct 28, 2026
16 checks passed
@jasperblues jasperblues mentioned this pull request Oct 28, 2026
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.

Move the README's docs into docs/, and keep a short README that sends readers to drivine.org

1 participant