Skip to content

Fix Documentation build broken by README port#22

Merged
mtfishman merged 1 commit intomainfrom
mf/visbase-docs-fix
Apr 25, 2026
Merged

Fix Documentation build broken by README port#22
mtfishman merged 1 commit intomainfrom
mf/visbase-docs-fix

Conversation

@mtfishman
Copy link
Copy Markdown
Member

@mtfishman mtfishman commented Apr 25, 2026

Summary

  • The README port in Port README content into examples/README.jl #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.

The `examples/README.jl` shipped in #21 split the runnable Julia into
two bare-Julia code blocks (the imports and the index/`@visualize`
setup) separated by prose. Literate's `DocumenterFlavor` turned each
into its own `@example index` block in `docs/src/index.md`. State did
not propagate across the two blocks on the Documentation CI runner,
which left `Index` undefined when the second block ran. Also,
`docs/Project.toml` was missing `ITensors` as a dependency, so even a
single-block setup couldn't have resolved the import.

- Consolidate the runnable Julia in `examples/README.jl` into one bare
  block so it lands as a single `@example index` block in `index.md`,
  removing the cross-block-state assumption entirely. Both `@visualize`
  calls now sit together in that block; the description prose was
  rearranged so the lead-in still flows naturally.
- Add `ITensors` to `docs/Project.toml` deps + compat (matching the
  root `Project.toml` compat range) so `using ITensors: Index,
  random_itensor` resolves during the Documenter build.

Verified locally: `docs/make.jl` now builds without errors, 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>
@mtfishman mtfishman merged commit cef9ea7 into main Apr 25, 2026
14 checks passed
@mtfishman mtfishman deleted the mf/visbase-docs-fix branch April 25, 2026 23:32
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