Skip to content

docs(book): rewrite the tutorials and how-to pages for readers - #7

Merged
HaoZeke merged 3 commits into
mainfrom
docs/reader-rewrite
Nov 19, 2026
Merged

HaoZeke merged 3 commits into
mainfrom
docs/reader-rewrite

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Nov 19, 2026 •

Copy link
Copy Markdown
Member
  • docs(book): rewrite the tutorials and how-to pages for readers
  • docs: rewrite the READMEs and the crate-level rustdoc
  • test(docs): compile and run every Rust example in the book and READMEs

Note

Low Risk
Documentation and CI validation only; no changes to library behaviour beyond rustdoc text and a version example string.

Overview
This PR reframes the docs for end users instead of contributors. The root and crate READMEs, book introduction, getting started, API map, link/read/error how-tos, and all seven tutorials are rewritten around cargo add dseams --features bundled, copy-pasteable programs, and matching text output blocks. Contributor-heavy material moves to “Building from source” (formerly Development) in the book summary.

Tutorials gain fuller walkthroughs: in-code slabs for interface/brine/nucleation, curl instructions for shipped dumps, CHILL vs CHILL+ comparisons, brine’s four reports, and runnable examples with locked stdout.

New docs/check_examples.py scans fenced rust blocks with fn main in the READMEs and docs/src, builds them in a scratch crate (workspace, bundled, or a crates.io version), runs them with test dumps copied into the working directory, and fails CI when compile, exit status, or expected output diverges. CI runs the checker in both the seams-core-linked job and the bundled job.

dseams/src/lib.rs crate docs are expanded for readers; llms.txt and changelog fragments document the new book shape and example testing.

Reviewed by Cursor Bugbot for commit 7ad07aa. Bugbot is set up for automated code reviews on this repo. Configure here.

Start from `cargo add dseams --features bundled` so a new project builds
without a separate libseams. Make every program on the pages complete and
runnable, fetch the two shipped dumps with one curl line instead of paths
that only exist in a checkout, and show the output each program prints.

The interface, brine and nucleation pages used a cubic cell that has no
interface, no ions and no growing crystal. They now build a slab in code
and report layer tables, ice fronts and q6-bar counts. The cages page
drops the claim that the membership call refuses a thin cell, which only
the signature search does, and the rings page drops a ring symmetry
section that no wrapper returns. The link page gives the commands that
work, including the multiarch library directory and the run-time library
path. The development page becomes a building-from-source page without
release and publishing steps.
Lead with the bundled install, a program that runs, and the documentation
links. Remove the publishing, release order and checkout-development
sections from the repository README, which are not for readers of the
crates. The dseams-sys README example is now a complete program. The
crate documentation on docs.rs gains an overview of the types by task,
a short account of errors, ownership and threads, and the library choice.
check_examples.py turns each fenced rust block into a binary of a scratch
crate, runs it next to the shipped dumps, and compares its output with the
text block that follows it. It runs against the workspace, the bundled
build or a crates.io release. CI runs it against both the meson build and
the bundled build.
@HaoZeke
HaoZeke merged commit 1a7e586 into main Nov 19, 2026
4 checks passed
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