Skip to content

Render DummyControllerCache so its @ref resolves (fixes the master docs build) - #4165

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:fix/docs-dummycontrollercache-xref
Aug 8, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:fix/docs-dummycontrollercache-xref

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

What changed

One line: OrdinaryDiffEqCore.DummyControllerCache added to the @docs block in docs/src/devtools/internals/public_api.md, next to DummyController which is already there.

DummyController's docstring says

Selecting it makes setup_controller_cache hand back a DummyControllerCache …

but the cache type had no @docs entry anywhere, so Documenter could not resolve that reference and aborted the build.

Why it matters

The Documentation workflow is currently failing on master for this reason, so no PR gets a docs preview. From the most recent master run (https://github.com/SciML/OrdinaryDiffEq.jl/actions/runs/31198061733):

┌ Error: Cannot resolve @ref for md"[`DummyControllerCache`](@ref)" in docs/src/devtools/internals/public_api.md.
...
ERROR: LoadError: `makedocs` encountered an error [:cross_references] -- terminating build before rendering.

Verification

Full docs/make.jl build at c11ff74bb4 (current master), unmodified — reproduces the CI failure exactly:

$ julia --project=docs docs/make.jl
┌ Error: Cannot resolve @ref for md"[`DummyControllerCache`](@ref)" in docs/src/devtools/internals/public_api.md.
ERROR: LoadError: `makedocs` encountered an error [:cross_references] -- terminating build before rendering.
exit=1

Same build with this one-line change:

$ julia --project=docs docs/make.jl
[ Info: Automatic `version="7.3.1"` for inventory from ../Project.toml
┌ Warning: Documenter could not auto-detect the building environment. Skipping deployment.
exit=0
$ grep -c "Cannot resolve @ref" build.log
0
$ du -sh docs/build
7.0M    docs/build

The remaining undefined binding / Invalid type of object in @eval warnings in the build are pre-existing and non-fatal (they are covered by warnonly); only the :cross_references stage was hard-failing.

Not verified

Nothing else — this touches one markdown line and no code. Test suites not run; they cannot be affected.

For the reviewer

If DummyControllerCache is deliberately meant to stay unrendered, the alternative fix is to drop the @ref from DummyController's docstring and leave it as plain code formatting. I picked rendering it because DummyController itself is already on that internals page and the two are described together.


Please ignore until reviewed by @ChrisRackauckas.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Gstik9KAfxtNAz53ejBPwN

`DummyController`'s docstring links to `[`DummyControllerCache`](@ref)`, but the
cache type had no `@docs` entry, so Documenter could not resolve the reference
and `makedocs` aborted at the :cross_references stage. The Documentation
workflow has been failing on master for this reason.

Co-Authored-By: Chris Rackauckas <[email protected]>
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review August 8, 2026 13:51
@ChrisRackauckas
ChrisRackauckas merged commit d3b1645 into SciML:master Aug 8, 2026
47 of 66 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