Repository navigation
docs: move case studies to a top-level Tutorials section - #229
Conversation
benchmarks with Benchmarks Closes #216. Moves docs/src/case-studies/ to docs/src/tutorials/, merges it with the existing Renewal modifiers walkthrough into one top-level Tutorials nav section, and moves the AD-backends page out of that list into a two-page Benchmarks dropdown (Overview + Automatic differentiation), so the AD benchmark sits with the benchmark it is. Updates every internal cross-reference: the case-study @id/@ref anchors (case-study-* -> tutorial-*, case-studies-overview -> tutorials-overview), the overview.md "Where to go next" link, and the README's "Where to learn more" link. Co-authored-by: Sam Abbott <contact@samabbott.co.uk>
|
Local verification update: I ran
So I did not get a full pass/fail from a local run; the terminated |
Try this Pull Request!Option 1: Julia Package ManagerOpen Julia and type: import Pkg
Pkg.activate(temp=true)
Pkg.add(url="https://github.com/EpiAware/ComposableTuringIDModels.jl", rev="docs/216-tutorials-nav")
using ComposableTuringIDModelsOption 2: Local CheckoutIf you have the repo locally: git checkout docs/216-tutorials-nav
julia --project=. -e "using Pkg; Pkg.instantiate()" |
ReviewNeeds work before merge, but only for one reason: this branch now conflicts with
The second thing worth waiting on is that On the specific pointsThe rename itself is clean. The half-move of The
The leftover "case study" prose is a smaller job than the description implies. Nothing here touches model code or sampler settings, so there is no path to plausible-but-wrong inference from this change. This was opened by a bot. Please ping @seabbs for any questions. |
PR #53 added docs/src/case-studies/gaussian-process.md with a case-study-gp anchor, a Case studies nav entry, and an index bullet, while this branch renamed the whole directory to tutorials/. Resolve by moving the GP page into docs/src/tutorials/, renaming its anchor to tutorial-gp, adding it to the Tutorials nav list in pages.jl, and adding its bullet to tutorials/index.md in the same relative position it held in the old case-studies index. Also fix leftover "case study" prose (nine occurrences across six tutorial pages plus a docs_config.jl comment) now that the section is called Tutorials, and fill in the three tutorials/index.md bullets that were missing before this merge (Catalyst ODE, time-varying damping, partial pooling). Co-authored-by: Sam Abbott <contact@samabbott.co.uk>
Conflict resolvedMerged
#237 interaction#237 ("streamline the Gaussian-process case study") is still open and #237 will need rebasing onto the new path Other review points addressed
Build verification
I then started What I did verify directly, independent of a full build:
The |
Update: local build finished, and it passedThe
I did not run |
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
Docuimente ris failing? |
…from #237 # Conflicts: # docs/src/tutorials/gaussian-process.md Take the streamlined Gaussian-process content from main (#237) at the new docs/src/tutorials/gaussian-process.md path, keeping the tutorial-gp anchor. Also fix three stale case-study-* @ref targets in design.md, hierarchy-stacked.md and split-observations.md left over from the earlier tutorials-nav rename pass. Co-authored-by: Sam Abbott <contact@samabbott.co.uk>
|
Doc build is failing |
The README's tutorials link resolves against the live deployed docs site, which still serves the old case-studies paths until this branch merges and redeploys, so linkcheck 404s on it. Same pattern as the existing CITATION.cff entry.
|
📖 Documentation preview is ready! View the docs for this PR at: https://EpiAware.github.io/ComposableTuringIDModels.jl/previews/PR229/ This preview will be updated automatically when you push new commits. |
Summary
Closes #216.
docs/src/case-studies/to a top-leveldocs/src/tutorials/,merged with the existing "Renewal modifiers" walkthrough, so the nav
carries one top-level "Tutorials" section instead of a "Case studies"
section plus a separate "Tutorials" section.
"Benchmarks" dropdown (Overview + Automatic differentiation), so the
AD benchmark sits with the benchmark it is, per the issue.
@id/@refanchors (
case-study-*→tutorial-*,case-studies-overview→tutorials-overview), theoverview.md"Where to go next" link, andthe README's "Where to learn more" link.
Nav shape decision
@seabbs's comment on #216 flagged that tutorials should not be nested
inside Getting started. This repo's
pages.jlalready flattens Gettingstarted into standalone top-level "Installation" / "Overview" pages
rather than a wrapping "Getting started" group, so the second option
fits directly: keep those pages as they are, and give Tutorials its own
top-level section alongside them.
What's package-owned vs. kit-owned
docs/pages.jlanddocs/docs_config.jlare package-owned (writtenonce by
scaffold, never re-applied byupdate), so this PR does allof the nav restructuring here directly — no kit change is needed for
this repo's own site.
But the shape we moved away from is the kit's default:
scaffold'stemplates/docs/pages.jlnests tutorial content inside "Gettingstarted", and
_ad_tutorials_nav/bench_navinscaffold.jlwritethe AD-backends page and the Benchmarks page as two disconnected nav
entries whenever a package has both
ad = trueandbenchmarks = true. Filed as EpiAware/EpiAwarePackageTools.jl#354 so futurescaffolded packages get this nav shape by default instead of each
package hand-fixing it.
renewal-modifiers.jlandad-backends.jlare Literate sourcesrendered by the kit's managed
make.jl, which reads a singleTUTORIALS_SUBDIRfromdocs_config.jlfor every Literate tutorialand writes each page's
.mdbeside its.jlsource. Because this PRsends one of those two pages into Tutorials and the other into
Benchmarks, they cannot be given different physical homes without a
kit change — #354 confirms this ("the AD-backends page's physical
path does not need to change ... only the nav fragment that groups
it"). Both stay at
getting-started/tutorials/and are reachedthrough the new nav positions rather than moved.
Merge resolution against main
This branch conflicted with main after #53 landed
docs/src/case-studies/gaussian-process.md(anchorcase-study-gp) afew hours after this branch's last merge from main. Resolved by:
git mv-ing the GP page todocs/src/tutorials/gaussian-process.md(git's merge already proposed this location via rename detection).
case-study-gp→tutorial-gp.docs/pages.jl, in thesame relative position it held in the old Case studies list (after
the split-observations page, before time-varying damping).
docs/src/tutorials/index.md, and whiletouching that file, adding the three pre-existing bullets it was
missing (Catalyst ODE, time-varying damping, partial pooling) per
the prior review.
own prose so it reads consistently with the rest of the section.
#237 ("streamline the Gaussian-process case study") is still open
against the old
docs/src/case-studies/gaussian-process.mdpath andhas not merged, so this resolution moves the version of the page
currently on
main, not #237's rewrite. #237 will need rebasing ontothe new
docs/src/tutorials/gaussian-process.mdpath once this PRmerges; whoever merges second should be aware of that.
Also fixed the remaining leftover "case study" prose flagged in the
prior review: nine occurrences across six tutorial pages plus one in a
docs_config.jlcomment, now all say "tutorial(s)".Redirects
DocumenterVitepress / the kit's build has no page-level redirect
mechanism (only a version-root redirect to
stable), so/case-studies/*URLs indexed from before this PR will 404 after itmerges. I could not find a way around this within the existing docs
infrastructure; flagging it rather than leaving it unstated.
Verification
I wrote and ran a small standalone Julia check confirming every path
in the new
docs/pages.jlnav resolves to a real file, and grep-diffedevery
@id/@refindocs/srcto confirm no dangling cross-referencesurvived the rename or the merge resolution.
task docs-fastverification is recorded in the PR comments; seethose for how far each local run got.
This was opened by a bot. Please ping @seabbs for any questions.