Skip to content

CAD tutorial : MkDocs sources plus an ITS round-trip example - #15790

Merged
sawenzel merged 1 commit into
AliceO2Group:devfrom
sawenzel:swenzel/cad-tutorial-mkdocs
Sep 12, 2026
Merged

sawenzel merged 1 commit into
AliceO2Group:devfrom
sawenzel:swenzel/cad-tutorial-mkdocs

Conversation

@sawenzel

@sawenzel sawenzel commented Sep 12, 2026

Copy link
Copy Markdown
Collaborator

This PR extends the CAD simulation tutorial and refactors a bit.

This converts the single-page tutorial to Markdown, adds a worked example
on the ITS and updates the README pointer.

- doc/tutorial/index.html is replaced by a MkDocs project: mkdocs.yml, one
  page per section under docs/, and the figures as files in docs/images/.
- The pages use GitHub's own alert and fence syntax, so they render in the
  repository file view without a published site.
- hooks/github_alerts.py turns those alerts into Material admonitions at
  build time, so the site needs only mkdocs-material.
- docs/its-round-trip.md is new: the ITS through o2-tgeo-to-cad and back,
  then placed as a sensitive external detector to produce hits.
- The tutorial pointer in README.md now names the directory.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017gNpas1pZ9DNBhVesoM5QZ
@sawenzel
sawenzel requested a review from a team as a code owner September 12, 2026 18:32
@sawenzel sawenzel changed the title Publish the CAD support tutorial as MkDocs sources and add an ITS round-trip example CAD tutorial : MkDocs sources plus an ITS round-trip example Sep 12, 2026
@sawenzel
sawenzel merged commit 9e02345 into AliceO2Group:dev Sep 12, 2026
7 of 10 checks passed
sawenzel added a commit to AliceO2Group/simulation that referenced this pull request Sep 12, 2026
This adds a new documentation section, CAD simulation tutorial, and the job
that keeps it in step with its sources.

- docs/cadtutorial holds the section. It is generated, not edited here.
- The sources live in AliceO2, Detectors/CADSupport/doc/tutorial, next to the
  converter they document.
- .github/scripts/sync_cad_tutorial.py converts them: GitHub alerts become
  the theme's note and warning fences, and each page gets its front matter.
- .github/workflows/cad-tutorial-sync.yml runs it weekly and on demand, and
  commits when the result changes.

AliceO2Group/AliceO2#15790

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017gNpas1pZ9DNBhVesoM5QZ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant