Skip to content

Fix fatal docs cross-reference: include NonstructuralZeros docstrings - #1026

Merged
ChrisRackauckas merged 1 commit into
SciML:mainfrom
ChrisRackauckas-Claude:fix-nonstructuralzeros-docs-ref
Jun 10, 2026
Merged

Fix fatal docs cross-reference: include NonstructuralZeros docstrings#1026
ChrisRackauckas merged 1 commit into
SciML:mainfrom
ChrisRackauckas-Claude:fix-nonstructuralzeros-docs-ref

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

Please ignore until reviewed by @ChrisRackauckas.

Problem

The Documentation workflow fails on main with:

Cannot resolve @ref for md"[`NonstructuralZeros`](@ref)" in docs/src/basics/OperatorAssumptions.md
ERROR: `makedocs` encountered an error [:cross_references] -- terminating build before rendering.

Introduced by cdb6f77 (#1017), which added the NonstructuralZeros enum whose @ref is linked from the OperatorAssumptions docstring, without including the NonstructuralZeros docstring in any @docs block.

Fix

Add NonstructuralZeros to the @docs block in docs/src/basics/OperatorAssumptions.md, plus a "Nonstructural Zero Specifications" section with the four variant docstrings (Auto/None/Persistent/Present), mirroring the existing OperatorCondition layout.

Verification

Reproduced the failure locally on unmodified main (docs env with Pkg.develop of the parent + LinearSolveAutotune, julia docs/make.jl): same fatal :cross_references error. With this change the build completes and renders successfully; remaining warnings (:docs_block, :missing_docs, including the SciMLBase.* docstrings) are pre-existing and covered by warnonly.

🤖 Generated with Claude Code

The OperatorAssumptions docstring links [`NonstructuralZeros`](@ref), but the
NonstructuralZeros enum docstring was never included in any @docs block, so
makedocs failed with a fatal :cross_references error on the OperatorAssumptions
page. Add NonstructuralZeros and its variant docstrings to
docs/src/basics/OperatorAssumptions.md, mirroring the OperatorCondition layout.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review June 10, 2026 08:59
@ChrisRackauckas
ChrisRackauckas merged commit 276fbaf into SciML:main Jun 10, 2026
5 of 9 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.

3 participants