Skip to content

Fix dead docs link in OptimizationProblem docstring#1395

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:cr/fix-optimization-docstring-deadlink
Jun 23, 2026
Merged

Fix dead docs link in OptimizationProblem docstring#1395
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:cr/fix-optimization-docstring-deadlink

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Contributor

Summary

The OptimizationProblem docstring in src/problems/optimization_problems.jl linked to a docs path that no longer exists:

https://docs.sciml.ai/Optimization/dev/optimization_packages/optimization403 / dead (there is no such page; the directory hosts per-package pages like sophia/).

This repoints the dead link to the page that actually hosts the Sophia data-handling example referenced in the surrounding text:

https://docs.sciml.ai/Optimization/dev/optimization_packages/sophia/HTTP 200

The sibling mini-batching link (tutorials/minibatch/200) was already correct and is left unchanged.

Why this matters

Optimization.jl renders SciMLBase docstrings (modules=[..., SciMLBase, ...]), so this dead link surfaces in Optimization.jl's docs build. It is the only remaining :linkcheck failure in SciML/Optimization.jl#1232 after that PR's other docs fixes.

Verification

Documenter linkcheck-style curl (curl -sI --proto =http,https -g -A '<chrome UA>' --max-time 10):

403  https://docs.sciml.ai/Optimization/dev/optimization_packages/optimization   (old, dead)
200  https://docs.sciml.ai/Optimization/dev/optimization_packages/sophia/         (new)
200  https://docs.sciml.ai/Optimization/dev/tutorials/minibatch/                  (unchanged)

Note on propagation

A SciMLBase release must be tagged and propagate (so Optimization.jl's docs pick up the new docstring) before Optimization.jl#1232's docs CI goes green. This PR is the necessary upstream prerequisite.


Please ignore until reviewed by @ChrisRackauckas.

🤖 Generated with Claude Code

The `OptimizationProblem` docstring linked to
`docs.sciml.ai/Optimization/dev/optimization_packages/optimization`, which
does not exist (returns a non-200 / 403). Repoint it to the Sophia package
page at `optimization_packages/sophia/`, which is the actual page hosting the
`Sophia` data-handling example referenced in the text.

Because Optimization.jl renders SciMLBase docstrings (`modules=[..., SciMLBase, ...]`),
this dead link is the remaining `:linkcheck` failure in SciML/Optimization.jl#1232.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ChrisRackauckas ChrisRackauckas marked this pull request as ready for review June 23, 2026 00:47
@ChrisRackauckas ChrisRackauckas merged commit a13b4e4 into SciML:master Jun 23, 2026
33 of 62 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