Skip to content

Document public API: add docstrings + docs entries#64

Merged
ChrisRackauckas merged 1 commit into
SciML:mainfrom
ChrisRackauckas-Claude:public-api-docs
Jul 9, 2026
Merged

Document public API: add docstrings + docs entries#64
ChrisRackauckas merged 1 commit into
SciML:mainfrom
ChrisRackauckas-Claude:public-api-docs

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Contributor

Summary

SteadyState is part of the exported public API (export FSPSystem, DefaultIndexHandler, SteadyState) but had neither a docstring nor a rendered-docs entry. It only appeared inside method signatures (::SteadyState) on the Main API and Matrix Conversions pages, never documented in its own right.

This PR closes that gap:

  • Docstring: adds a docstring to struct SteadyState end (src/build_rhs_ss.jl) describing it as the marker/dispatch type that selects the steady-state formulation of the CME (transitions out of the truncated state space dropped to propensity 0), matching the docstring style of FSPSystem and DefaultIndexHandler. Cross-links the three methods that dispatch on it.
  • Docs entry: adds a standalone SteadyState entry to the @docs block in docs/src/mainapi.md (Steady-State Problems section) so it is rendered.

The other two exported names (FSPSystem, DefaultIndexHandler) already have both a docstring and a docs entry — verified by loading the package and checking Base.Docs.doc for every FSP-owned public name.

Validation

  • Loaded the package (Julia 1.12.6): the only FSP-owned exported names are FSPSystem, DefaultIndexHandler, SteadyState; only SteadyState lacked a docstring on main.
  • @doc SteadyState is now non-empty and attaches the new docstring.
  • Built the docs with docs/make.jl (Documenter default checkdocs, no warnonly): completes cleanly, CheckDocument/CrossReferences pass with no missing-docstring errors, and the rendered mainapi.html contains the SteadyState docstring block with anchor id="FiniteStateProjection.SteadyState".
  • Runic clean on the changed source file.

Please ignore until reviewed by @ChrisRackauckas.

🤖 Generated with Claude Code

`SteadyState` is exported (public API) but had neither a docstring nor a
rendered-docs entry; it only appeared inside method signatures on the
Main API page. Add a docstring to the `struct SteadyState end` marker type
describing its role as the steady-state dispatch tag, and add a standalone
`@docs SteadyState` entry to docs/src/mainapi.md so it is rendered.

Verified: package loads, `@doc SteadyState` is non-empty, and the docs
build (docs/make.jl, Documenter default checkdocs, no warnonly) completes
cleanly with the new entry rendered in mainapi.html.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
@ChrisRackauckas ChrisRackauckas marked this pull request as ready for review July 9, 2026 22:07
@ChrisRackauckas ChrisRackauckas merged commit e542a06 into SciML:main Jul 9, 2026
6 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.

2 participants