Skip to content

docs: mirror remaining recipes as runnable example workflows#79

Merged
djankov merged 2 commits into
mainfrom
issue-67-examples-mirror-recipes
May 2, 2026
Merged

docs: mirror remaining recipes as runnable example workflows#79
djankov merged 2 commits into
mainfrom
issue-67-examples-mirror-recipes

Conversation

@djankov
Copy link
Copy Markdown
Contributor

@djankov djankov commented May 2, 2026

Summary

  • Adds examples/{pytest,run-mission-script,skip-on-docs,multi-version}.yml — runnable workflow files extracted verbatim from each recipe page, matching the header-comment + raw-YAML convention set by examples/docker-mode.yml (docs: container-mode recipe + example workflow #78). Files live under examples/ rather than .github/workflows/ so GitHub does not auto-run them in this repo.
  • Adds a one-line "Runnable copy:" link at the top of all five recipe pages (pytest.md, run-mission-script.md, skip-on-docs.md, multi-version.md, docker.md) pointing at the corresponding examples/*.yml on the v0 branch. docker.md is included because docs: container-mode recipe + example workflow #78 didn't backfill it; the convention applies uniformly going forward.
  • Adds an "Examples" subsection to the README between "Documentation" and "Verifying images" listing each runnable example with a one-line summary.

Test plan

  • CI green on the branch.
  • Each examples/*.yml parses as valid workflow YAML (verified locally with yaml.safe_load).
  • Each "Runnable copy" link resolves once the branch lands on v0 (the blob/v0/... URLs are intentionally pinned to the major branch, not main).
  • README "Examples" section renders cleanly on github.com and links into examples/.

Closes #67

djankov added 2 commits May 2, 2026 17:31
- New examples/{pytest,run-mission-script,skip-on-docs,multi-version}.yml extract the workflow YAML from each docs/recipes/*.md page verbatim, with a header comment naming the companion recipe. examples/docker-mode.yml from #78 already covers docker.md.
- Each docs/recipes/*.md gains a "Runnable copy:" line under the H1 pointing at examples/<file>.yml on the v0 branch. Applied to all five recipe pages (docker.md included; #78 did not backfill it).
- README gains an "Examples" subsection between "Documentation" and "Verifying images" listing every example with a one-line summary, and noting that the files live outside .github/workflows/ so GitHub does not auto-run them in this repo.

Closes #67
The "auto-run" sentence was a contributor-facing rationale that doesn't earn its keep in the user-facing README.
@djankov djankov marked this pull request as ready for review May 2, 2026 21:34
@djankov djankov merged commit a1dda38 into main May 2, 2026
11 checks passed
@djankov djankov deleted the issue-67-examples-mirror-recipes branch May 2, 2026 21:36
@djankov djankov mentioned this pull request May 2, 2026
8 tasks
djankov added a commit that referenced this pull request May 2, 2026
- Bumps `package.json` + lockfile to `0.3.0` and aggregates the `[0.3.0]` CHANGELOG section over PRs #70, #72, #74, #75, #76, #77, #78, #79, #80 (Docker base image, GHCR publish, smoke gate, cosign signing, container recipe + examples, Marketplace pass).
- Backfills the missing `## [0.1.0] - 2026-04-30` CHANGELOG header that the v0.2 cut left orphaned.
- Drops the now-shipped v0.2 row from the README roadmap and rewrites the v0.3 row to reflect what actually shipped (semantic-release deferred per #64); `_(current)_` marker moves to v0.3.
- Flips the two `docs/faq.md` paragraphs that still described the GHCR image and cosign signing as planned, and drops the stale "cut by semantic-release" comment in `docker.yml`.

Closes #69
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.

examples/ directory: mirror existing recipes as runnable workflow files

1 participant