You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix Documentation build broken by README port (#22)
## Summary
- The README port in #21 split the runnable Julia in
`examples/README.jl` into two bare-Julia code blocks (imports, then
setup + `@visualize` calls) separated by prose. Literate's
`DocumenterFlavor` turned each into its own `@example index` block in
`docs/src/index.md`. Inter-block state did not propagate on the
Documentation CI runner, so `Index` was undefined when the second block
ran. Independently, `docs/Project.toml` was missing `ITensors` as a
dependency — so even a single-block setup couldn't have resolved `using
ITensors: Index, random_itensor` during the Documenter build.
- Consolidate the runnable Julia in `examples/README.jl` into one
bare-Julia block so it lands as a single `@example index` block in
`index.md`. Both `@visualize` calls now sit together; the surrounding
prose was rearranged so the lead-in still flows.
- Add `ITensors` to `docs/Project.toml` `[deps]` and `[compat]`
(matching the root `Project.toml` compat range) so the Documenter build
can resolve the import.
- Bump `Project.toml` patch version 0.1.16 → 0.1.17.
Verified locally: `docs/make.jl` now completes successfully, and
`include("examples/README.jl")` from the test environment still runs the
example through the no-op default backend.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments