Skip to content

docs: make the guided tour execute (Phase E5) - #920

Merged
ocots merged 2 commits into
mainfrom
docs/guided-tour-executes
Aug 31, 2026
Merged

ocots merged 2 commits into
mainfrom
docs/guided-tour-executes

Conversation

@ocots

@ocots ocots commented Aug 31, 2026

Copy link
Copy Markdown
Member

What

Phase E5 of the documentation campaign: the guided tour
(docs/src/getting-started/guided-tour.md, generated from
docs/src-literate/guided-tour.jl via Literate) was the last page still
skipped at build time. make.jl carried a stale comment attributing the
work to "PR 11" (merged long ago) and warning that forcing execution
"surfaced several unrelated runtime bugs".

Those bugs were upstream and have since been fixed across the ecosystem over
the course of this campaign. The tour now builds clean.

Commits

  1. Rename docs/src-literate/tutorial.jl → guided-tour.jl — every
    user-facing name for this page is already "Guided tour" (sidebar, H1,
    @id getting-started-guided-tour anchor, generated guided-tour.md /
    .ipynb / .jl). Pure rename, Literate output names unchanged.
  2. Execute the tour + fix two lists —
    • make.jl: inject Draft = false into the generated page's @meta
      block via a Literate postprocess, so the tour's code runs under the
      global draft = true like every other real page. 21 @example
      blocks execute; 6 SVG figures render.
    • guided-tour.jl: two ordered lists rewritten.
      LuxDL/DocumenterVitepress.jl#150
      — DocumenterVitepress mis-renders any ordered list whose items carry
      block content (1. 2. 3. source → 2. 3. 4. output). "two ways"
      (cold start / cascade) → inline prose; "three steps" → Step 1 — / Step 2 — / Step 3 — bold-lead paragraphs.

Not in scope

  • GPU section — left exactly as-is. Its try/catch block is the
    reference pattern named in
    #885
    (make gpu.md executable; a GPU-backed docs build).
  • Site-wide ordered-list sweep (flows/overview.md, the api/*
    docstring-sourced pages) — tracked separately; this PR only touches the
    tour's two.

Verification

Full julia --project=. docs/make.jl from repo root:

  • exit 0
  • 0 Cannot resolve @ref (the getting-started-guided-tour anchor,
    referenced from index.md and first-problem.md, resolves)
  • no <ol start= anywhere in build/1/getting-started/guided-tour.html
  • the only build errors are the 4 unchanged Phase-D @extref upstream-backlog
    items (CTModels#416 / CTBase#543)

Add the run documentation label to build the site in CI.

🤖 Generated with Claude Code

ocots and others added 2 commits August 31, 2026 22:06
…ur.jl)

Every user-facing name for this page is "Guided tour" — the sidebar label,
the H1, the `@id getting-started-guided-tour` anchor, and the generated
`guided-tour.md` / `.ipynb` / `.jl` outputs. The Literate source was the
last place still called `tutorial.jl`. Pure rename; `make.jl` updated to
match, Literate output names unchanged.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…e E5)

The guided tour was the last page still skipped at build time: `make.jl`
carried a comment attributing the work to "PR 11" (long merged) and
warning that executing it "surfaced several unrelated runtime bugs". Those
bugs were upstream and have since been fixed across the ecosystem — the
tour now builds clean.

- make.jl: inject `Draft = false` into the generated page's `@meta` block
  via a Literate `postprocess`, so the tour's code runs under the global
  `draft = true` like every other real page. 21 `@example` blocks now
  execute; 6 figures render (SVG).
- guided-tour.jl: two ordered lists rewritten. DocumenterVitepress
  mis-renders any ordered list whose items carry block content — valid
  `1. 2. 3.` source comes out `2. 3. 4.` (LuxDL/DocumenterVitepress.jl#150).
  "two ways" (cold start / cascade) → inline prose; "three steps"
  (maximising control / BVP / shooting) → `Step 1 — / Step 2 — / Step 3 —`
  bold-lead paragraphs, math blocks kept.

Verified: full docs build exit 0, 0 unresolved @ref, no `<ol start=` in
the built page. The GPU section is left as-is — it is the reference
pattern tracked in #885.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@ocots ocots added the run documentation Trigger the Documentation workflow on this PR label Aug 31, 2026
@ocots
ocots merged commit c5ce9cd into main Aug 31, 2026
8 checks passed
@ocots
ocots deleted the docs/guided-tour-executes branch August 31, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run documentation Trigger the Documentation workflow on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant