Skip to content

Revert the classical_physics example-group split - #905

Merged
ChrisRackauckas merged 1 commit into
masterfrom
revert-classical-physics-groups
Sep 4, 2026
Merged

Revert the classical_physics example-group split#905
ChrisRackauckas merged 1 commit into
masterfrom
revert-classical-physics-groups

Conversation

@ChrisRackauckas

Copy link
Copy Markdown
Member

Reverts #904. It broke the docs build on master.

Splitting the shared @example physics block into per-topic groups gives each group its own
module, so every name a group uses must be defined within that group. #904 fixed one escapee
(ODERKN) but not all of them: the double-pendulum group also uses g, which is defined in
an earlier block, so makedocs fails with

UndefVarError: `g` not defined in `Main.var"__atexample__named__double-pendulum"`

and the following block then cascades on sol.

Restoring the single physics group unbreaks the build. The split is still worth doing — it is
a real readability improvement — but it needs every cross-block name resolved first, which is
best verified by a full docs build before merging rather than after.

🤖 Generated with Claude Code

https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R

Reverts #904. It broke the docs build on master.

Splitting the shared `@example physics` block into per-topic groups gives each group its own
module, so every name a group uses must be defined *within that group*. #904 fixed one escapee
(`ODERKN`) but not all of them: the `double-pendulum` group also uses `g`, which is defined in
an earlier block, so `makedocs` fails with

```
UndefVarError: `g` not defined in `Main.var"__atexample__named__double-pendulum"`
```

and the following block then cascades on `sol`.

Restoring the single `physics` group unbreaks the build. The split is still worth doing — it is
a real readability improvement — but it needs every cross-block name resolved first, which is
best verified by a full docs build before merging rather than after.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R
@ChrisRackauckas
ChrisRackauckas merged commit e3e26fd into master Sep 4, 2026
@ChrisRackauckas
ChrisRackauckas deleted the revert-classical-physics-groups branch September 4, 2026 05:42
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.

1 participant