Repository navigation
ci: publish GitHub Pages with every tutorial as a site, a home page and a proper README - #778
Merged
matbmoser merged 10 commits intoNov 25, 2026
Merged
Conversation
pages.yml publishes the whole Pages site with GitHub Actions in one deployment: / a home page that lists the tutorials (pages/) /e2e-testing/ the E2E testing tutorial (MkDocs) /policy-playground/ the EDC Policy Playground (Angular) It replaces the gh-pages branch publishing: publish-playground.yaml is removed and e2e-testing-site.yml keeps only its pull request check. The repository's Pages source has to be switched to "GitHub Actions". Assisted-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Mathias Moser <mathias.moser@catena-x.net>
2 tasks done
The root README lists every tutorial with what you do in it and where it opens (website or repository), the folders, how the website is built and previewed, and how to add a tutorial. It links the contributing guide and ends with the CC-BY-4.0 notice. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Mathias Moser <mathias.moser@catena-x.net>
…d pictures - The home page is titled "Eclipse Tractus-X Tutorials", with "Learn Tractus-X by doing" above it. - Every card has a picture on top: the TestLab logo (light and dark), a Policy Playground screenshot, MXD in k9s and a passport in the DPP app, each with a .license file in pages/media. The IRS challenge and the migration guides have no images, so they get an icon. - The README says where a new card's picture goes. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Mathias Moser <mathias.moser@catena-x.net>
… home page - A full-width search field matches the start of words in each card's title, text and labels, plus a few keywords per tutorial. "/" focuses it, Escape clears it. - Filter chips: All, Community Days, Developers, Operators, With AI, Getting started. Each card lists who it is for. - The filter, the search and "Hide deprecated" go into the address (?for=community-days), so a filtered view can be shared. - MXD and the Digital Product Passport carry a Deprecated badge, sit at the end, and can be hidden. The README marks them as well. - Without JavaScript every card shows and the controls stay hidden. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Mathias Moser <mathias.moser@catena-x.net>
- A "Sort by" menu on the home page: Recommended, Newest first, Recently updated, Oldest first, Name. It goes into the address (?sort=name). - Each card shows when the tutorial was added and last updated, and the version it declares. The dates come from the git history of the tutorial's folder: .github/scripts/stamp_tutorial_dates.py fills them in at every Pages build, so they never go stale. - The header shows the repository like the tutorial site does: icon, eclipse-tractusx/tutorial-resources, stars and forks. - The E2E card says it uses the Eclipse Tractus-X TestLab testing framework to create automated tests with AI. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Mathias Moser <mathias.moser@catena-x.net>
- Each tutorial has its own version, separate from the software it uses: 1.0 when published, a minor step when the steps change, a major step when it is rebuilt. The README lists each tutorial's version history (MXD is 2.2: rebuilt on IdentityHub in Nov 2024). - Each card shows its authors: the GitHub accounts with commits in the tutorial's folder, most first, bots left out, as avatars linked to their profiles. The Digital Product Passport also counts its history in the digital-product-pass repository, where it was written. - Added, Updated and Version sit in one aligned row on every card. - The build script, now stamp_tutorials.py, fills in the authors from the GitHub API with the workflow token; if the API cannot be reached, the authors already in the page stay. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Mathias Moser <mathias.moser@catena-x.net>
The E2E site's About panel (eclipse-tractusx#779) lists the tutorial's authors from the GitHub API; the token avoids its rate limit. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Mathias Moser <mathias.moser@catena-x.net>
- The Markdown tutorials open as sites on github.io, with nothing changed in them: pages/markdown-sites.yml maps folders to sites, and .github/scripts/build_markdown_sites.py builds each with the Tractus-X look of the E2E site. The README is the home page (a contents page is made when there is none); links to files the site does not carry (Postman, Terraform, test data) open on GitHub; lists written the GitHub way render the same. Deprecated tutorials get a note on every page. - A web app gets a "Try the app" button over its blurred screenshot on its tutorial's home page (app, app_image). The Policy Playground is the first. - Cards end with a full-width button that lights up on hover; a card can have a second one with its own link (E2E: the story; Playground: try the app). - Buttons, tags, filters and badges use small corners, like Tractus-X. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Mathias Moser <mathias.moser@catena-x.net>
The story is the E2E site's Introduction now, one click away on its home page. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Mathias Moser <mathias.moser@catena-x.net>
Each card shows one to three stars: Beginner, Intermediate or Advanced. A Difficulty dropdown shows one level (?level=beginner) and Sort by gets Easiest first. The README gets a Level column and says what each level means. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Mathias Moser <mathias.moser@catena-x.net>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Publishes https://eclipse-tractusx.github.io/tutorial-resources/ with GitHub Pages from GitHub Actions, with a home page where visitors pick a tutorial.
/pages/index.html, pictures inpages/media//e2e-testing/e2e-testing/(MkDocs,--strict)/policy-playground/edc-policy-playground/(Angular)/edc-policy-playground/,/mxd/,/dpp-tutorial/,/icc-irs-challenges/,/migration-guides/pages/markdown-sites.yml.github/workflows/pages.ymlbuilds them all into one artifact and deploys it withactions/deploy-pages. With Actions as the source there is one deployment for the whole site, so the playground moves into this workflow:publish-playground.yamlis removed (it pushed to thegh-pagesbranch).e2e-testing-site.ymlkeeps its pull request check and drops itsgh-pagespublish job.The deploy job runs only on
mainofeclipse-tractusx/tutorial-resources. Pull requests that change the home page or the workflow build the site without publishing it.The card pictures are the TestLab logo (from the TestLab repository, CC-BY-4.0), a Policy Playground screenshot, MXD in k9s (
mxd/assets/img.png) and a passport in the DPP app (dpp-tutorial/resources/screenshots/visualization.png), scaled down, each with a.licensefile. The IRS challenge and the migration guides have no images, so they get an icon.Every tutorial on the site, without changing it.
pages/markdown-sites.ymlmaps a folder to a site, and.github/scripts/build_markdown_sites.pybuilds it with the look of the E2E tutorial site (its logo, favicon and stylesheet are copied at build time). The folder'sREADME.mdis the home page; a contents page is made when there is none (the migration guides). Other Markdown files and their pictures become pages. A MkDocs hook (markdown_site_hook.py) sends links to files the site does not carry (Postman collections, Terraform, test data) to GitHub, encodes file names with spaces, and evens out two GitHub habits Python-Markdown reads differently: a list right under a paragraph and lists nested by two spaces.deprecated: trueputs a note under the title of every page. These builds are not--strict, since the pages were written for GitHub: a few links were already broken there (ki-guide.md, the DPP logo) and stay broken.Try the app. A tutorial with a web app names it (
app) and a screenshot (app_image): its home page shows the screenshot out of focus with a "Try the app" button over it. The Policy Playground is the first; its README is still the Angular default, so a short guide there would make that page more useful.Cards. Each card ends with a button across its width that fills orange on hover. A card can carry a second button with its own link, such as the Playground's app. Buttons, tags, filters and badges use small corners, as Tractus-X does.
Search and filters. The home page has a full-width search field and audience filters: All, Community Days, Developers, Operators, With AI, Getting started. The filter and the search go into the address, so
https://eclipse-tractusx.github.io/tutorial-resources/?for=community-daysis a link that shows only the Community Days tutorials. MXD and the Digital Product Passport carry a Deprecated badge and sit at the end; "Hide deprecated" takes them out. Without JavaScript every card shows.Sort, dates, versions and authors. A "Sort by" menu: Recommended, Newest first, Recently updated, Oldest first, Name (A–Z), also in the address (
?sort=name). Each card shows, in one aligned row, when the tutorial was added and last updated and its version, and below that its authors..github/scripts/stamp_tutorials.pyfills them in at every build (checkout withfetch-depth: 0, the read-onlyGITHUB_TOKENfor the GitHub API), so they never go stale. Authors are the GitHub accounts with commits in the folder, most first, bots left out, as avatars linked to their profiles (five, then "+N"). The Digital Product Passport also counts its history ineclipse-tractusx/digital-product-pass, where it was written. If the API cannot be reached, the authors already in the page stay.Difficulty. Each card shows one to three stars: Beginner (E2E tests, Policy Playground), Intermediate (IRS challenge, MXD, Digital Product Passport), Advanced (migration guides). A Difficulty dropdown shows one level, also in the address (
?level=beginner), and Sort by has Easiest first. The README has a Level column and a Levels section that says what each level means; the levels are a first proposal for the tutorials' authors to correct.The repository in the header, like on the tutorial site: the git icon,
eclipse-tractusx/tutorial-resources, and the stars and forks from the GitHub API, kept for the browser session. If the API is not reachable, the name shows alone.To add a tutorial later: a Markdown one needs a line in
pages/markdown-sites.ymland a card; one with its own site or app is built into its own folder of_siteinpages.yml.A proper README. The root
README.mdwas three short paragraphs. It now lists every tutorial with what you do in it and where it opens (website or repository), describes the folders, explains how the website is built and how to preview a site locally, says how to add a tutorial, links the contributing guide, and ends with the CC-BY-4.0 notice.Needs a maintainer
Settings → Pages → Source must be switched from "Deploy from a branch" to "GitHub Actions". Until then the deploy job fails and nothing is published. Once switched, the
gh-pagesbranch is no longer served and can be deleted later.How it was checked
pages.ymlbuilds it, served under/tutorial-resources/mkdocs build --strict, catalog, template archive and agent kit--checkactionlintonpages.ymlande2e-testing-site.yml?sort=links, reset; the stamp script run twice against the GitHub API (no change the second time)/tutorial-resources/; card buttons clicked, Tab order, Try the app?level=links, an unknown level, Easiest first; a phone at 390pxmarkdownlintreports only line length, like the other READMEs hereNot verified: the deployment itself, which can only run on this repository's
mainafter the source switch.Related
Pre-review checks
actions/configure-pages,actions/upload-pages-artifactandactions/deploy-pages.AI assistance: this contribution was written with Claude Code and reviewed by the contributor.
🤖 Generated with Claude Code