Skip to content

Render exported cache APIs explicitly - #205

Closed
ChrisRackauckas-Claude wants to merge 2 commits into
SciML:masterfrom
ChrisRackauckas-Claude:agent/render-public-api-docs
Closed

ChrisRackauckas-Claude wants to merge 2 commits into
SciML:masterfrom
ChrisRackauckas-Claude:agent/render-public-api-docs

Conversation

@ChrisRackauckas-Claude

@ChrisRackauckas-Claude ChrisRackauckas-Claude commented Aug 20, 2026 •

Copy link
Copy Markdown
Member

Ignore this PR until it has been reviewed by @ChrisRackauckas.

What changed and why

Render the six exported cache APIs in an explicit @docs block, and keep the remaining @autodocs block from duplicating the explicitly documented API. The five developer hooks marked public remain explicitly rendered on the Developer API page, so every public name has one canonical rendered location without @doc indirection.

The source docstrings for the six exported cache/storage APIs were also corrected at their original definitions: constructor signatures now match the callable methods, public cache field types are stated, get_tmp documents its generic fallback behavior, dualcache documents its return value, and headings follow the SciMLStyle Keywords/Returns conventions. No public-documentation QA override was added; the existing ExplicitImports ignores are unrelated external nonpublic extension names.

SciMLTesting's fail-closed handling of dynamic @autodocs Filter scopes exposed the latent rendering gap. The enforcement boundary is SciML/SciMLTesting.jl@4ab0181 from SciML/SciMLTesting.jl#53.

Failing before

Using clean current PreallocationTools master with SciMLTesting 2.11.0:

public API is rendered in docs: Test Failed
unrendered = [
    :DiffCache,
    :FixedSizeDiffCache,
    :GeneralLazyBufferCache,
    :LazyBufferCache,
    :dualcache,
    :get_tmp,
]
Test Summary:     | Pass  Fail  Total
Quality Assurance |   19     1     20

Verification

The following focused checks passed on commit b461b3e:

JuliaFormatter.format("src/PreallocationTools.jl"; overwrite=false) => false
`typos src/PreallocationTools.jl docs/src/preallocationtools.md` => exit 0
`git diff --check` => exit 0
doc_metadata_and_fallback=PASS; exported_count=6
six exported API headings and five developer API headings found in generated HTML

A local docs build with doctests, cross-references, document checks, and HTML rendering passed with the external link check disabled. The standard local build reached the same checks but was stopped by GitHub returning HTTP 429 for the unrelated ColPrac link; the live Documentation check on the PR's original commit passed. The isolated QA run reached Quality Assurance | 10 passed, 10 total before being stopped during Aqua persistent-task precompilation; no QA assertion failure was observed, but a full local QA completion is not claimed here.

Not verified

No GPU or downstream groups were run because this PR changes documentation only.

Co-Authored-By: Chris Rackauckas <[email protected]>
@ChrisRackauckas

Copy link
Copy Markdown
Member

Superseded by #206, which merged as cf7121a and already carries this branch's commits (b461b3e is in #206's history). Current master has the explicit @docs blocks and no longer carries the Filter = t -> !(t in (...)) exclusion this PR removed, so there is nothing left to apply.

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