What
Several docstrings in src/utils.jl and src/onepass.jl (including @def's and @init's) illustrate usage with ```@example fenced code blocks. Documenter only executes @example blocks that are written directly in the .md source file being built — one arriving inside a docstring transcluded via a @docs block is rendered as static text but never run, and DocumenterVitepress warns "un-expanded @example block encountered" whenever this happens.
Surfaced while diagnosing OptimalControl's docs/make.jl warnonly backlog (control-toolbox/OptimalControl.jl, Phase D of the documentation campaign): @def's docstring is transcluded into OptimalControl's generated api/modelling.md, producing exactly this warning. The same would happen in CTParser's own docs build wherever these docstrings are pulled via @docs, and in any other consumer.
Where
Suggested fix
Change the fence label from @example to plain julia in docstrings (keep @example/@repl for blocks written directly in .md source files, where Documenter does execute them).
🤖 Generated with Claude Code
What
Several docstrings in
src/utils.jlandsrc/onepass.jl(including@def's and@init's) illustrate usage with```@examplefenced code blocks. Documenter only executes@exampleblocks that are written directly in the.mdsource file being built — one arriving inside a docstring transcluded via a@docsblock is rendered as static text but never run, and DocumenterVitepress warns "un-expanded@exampleblock encountered" whenever this happens.Surfaced while diagnosing OptimalControl's
docs/make.jlwarnonlybacklog (control-toolbox/OptimalControl.jl, Phase D of the documentation campaign):@def's docstring is transcluded into OptimalControl's generatedapi/modelling.md, producing exactly this warning. The same would happen in CTParser's own docs build wherever these docstrings are pulled via@docs, and in any other consumer.Where
```@examplein that file)Suggested fix
Change the fence label from
@exampleto plainjuliain docstrings (keep@example/@replfor blocks written directly in.mdsource files, where Documenter does execute them).🤖 Generated with Claude Code