Repository navigation
docs(book): rewrite the tutorials and how-to pages for readers - #7
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 matchingtextoutput 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.pyscans fencedrustblocks withfn mainin the READMEs anddocs/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.rscrate docs are expanded for readers;llms.txtand 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.