Skip to content

docs: pre-0.5.0 doc cleanup#265

Merged
dyreby merged 3 commits into
mainfrom
issue-263-pre-release-doc-cleanup
Feb 28, 2026
Merged

docs: pre-0.5.0 doc cleanup#265
dyreby merged 3 commits into
mainfrom
issue-263-pre-release-doc-cleanup

Conversation

@dyreby

@dyreby dyreby commented Feb 28, 2026

Copy link
Copy Markdown
Contributor

Closes #263.

Changes

twine-observers/src/lib.rs — The PlotObserver and ShowConfig intra-doc links in the Features section broke when docs built without the plot feature. Replaced the //! bullet with two cfg_attr blocks: one that includes the linked form when feature = "plot" is active, and one with plain backtick names otherwise.

crates/core/src/lib.rs — Added crate-level //! docs listing the shared abstractions the crate provides (Model, Snapshot, Observer, and the problem traits).

crates/solvers/src/equation.rs and optimization.rs — Added module-level //! docs describing the module's role and listing available solvers.

README.md (beyond original issue scope):

  • Rewrote the GoodEnough paragraph to make clear it's an example illustrating cross-solver genericity via capability traits, not a real framework type.
  • Fixed a broken import: twine_observers::{HasResidual, CanStopEarly} should be twine_observers::traits::{...}. The traits aren't re-exported at the crate root, so the old code wouldn't compile.

Verification

  • cargo doc --workspace --no-deps — no warnings
  • cargo test --workspace — all pass
  • cargo clippy --workspace -- -D warnings — clean
  • cargo fmt --check — clean

- Fix broken intra-doc links in twine-observers lib.rs: PlotObserver and
  ShowConfig are behind the plot feature gate, so the links broke when docs
  built without it. Use cfg_attr to include linked text only when the feature
  is active.

- Add crate-level docs to twine-core: describes the shared abstractions
  (Model, Snapshot, Observer, problem traits) that make up the crate.

- Add module-level docs to twine-solvers equation and optimization modules:
  explains the role of each module and lists the available solvers.

- Clarify in README that GoodEnough is an example observer, not a real type,
  and that the point is its genericity over capability traits.
The capability traits live in twine_observers::traits, not at the crate
root. The old import wouldn't compile.
@dyreby dyreby merged commit df797ad into main Feb 28, 2026
1 check passed
@dyreby dyreby deleted the issue-263-pre-release-doc-cleanup branch February 28, 2026 18:07
dyreby added a commit that referenced this pull request Feb 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.

Pre-0.5.0 release: fix doc warnings and add missing crate-level docs

1 participant