Skip to content

ci: publish GitHub Pages with every tutorial as a site, a home page and a proper README - #778

Merged
matbmoser merged 10 commits into
eclipse-tractusx:mainfrom
matbmoser:ci/github-pages-home
Nov 25, 2026
Merged

matbmoser merged 10 commits into
eclipse-tractusx:mainfrom
matbmoser:ci/github-pages-home

Conversation

@matbmoser

@matbmoser matbmoser commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Description

Publishes https://eclipse-tractusx.github.io/tutorial-resources/ with GitHub Pages from GitHub Actions, with a home page where visitors pick a tutorial.

Path What Built from
/ Home page, "Eclipse Tractus-X Tutorials": one card per tutorial, each opening on the site pages/index.html, pictures in pages/media/
/e2e-testing/ E2E tests for Tractus-X products e2e-testing/ (MkDocs, --strict)
/policy-playground/ EDC Policy Playground, the web app, same address as today edc-policy-playground/ (Angular)
/edc-policy-playground/, /mxd/, /dpp-tutorial/, /icc-irs-challenges/, /migration-guides/ The Markdown tutorials, one site each their folders, listed in pages/markdown-sites.yml

.github/workflows/pages.yml builds them all into one artifact and deploys it with actions/deploy-pages. With Actions as the source there is one deployment for the whole site, so the playground moves into this workflow:

  • publish-playground.yaml is removed (it pushed to the gh-pages branch).
  • e2e-testing-site.yml keeps its pull request check and drops its gh-pages publish job.

The deploy job runs only on main of eclipse-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 .license file. 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.yml maps a folder to a site, and .github/scripts/build_markdown_sites.py builds it with the look of the E2E tutorial site (its logo, favicon and stylesheet are copied at build time). The folder's README.md is 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: true puts 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-days is 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.

  • Version is the tutorial's own, separate from the software it uses: 1.0 when published, a minor step when the steps change, a major step when it is rebuilt. From the history: MXD 2.2 (rebuilt on IdentityHub and STS in Nov 2024), Policy Playground 1.1, migration guides 1.2, the others 1.0. The README gets a "Versions" section with each tutorial's history; please correct any entry the authors see differently.
  • Dates and authors come from the history of each tutorial's folder. .github/scripts/stamp_tutorials.py fills them in at every build (checkout with fetch-depth: 0, the read-only GITHUB_TOKEN for 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 in eclipse-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.yml and a card; one with its own site or app is built into its own folder of _site in pages.yml.

A proper README. The root README.md was 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-pages branch is no longer served and can be deleted later.

How it was checked

Check Result
Site assembled locally the way pages.yml builds it, served under /tutorial-resources/ Home page, tutorial and playground load; the playground made no failed requests
mkdocs build --strict, catalog, template archive and agent kit --check Pass
actionlint on pages.yml and e2e-testing-site.yml Pass
Sort orders, filters with sort, ?sort= links, reset; the stamp script run twice against the GitHub API (no change the second time) Pass, in headless Chromium
The five Markdown sites built and served under /tutorial-resources/; card buttons clicked, Tab order, Try the app No broken local links or page errors; each button opens its page
Difficulty filter: each level, with a filter and with reset, ?level= links, an unknown level, Easiest first; a phone at 390px Pass, in headless Chromium; no sideways scroll
README links to files in the repository All resolve; markdownlint reports only line length, like the other READMEs here

Not verified: the deployment itself, which can only run on this repository's main after the source switch.

Related

Pre-review checks

  • DEPENDENCIES are up-to-date: no dependency is added. The workflow uses the pinned actions/configure-pages, actions/upload-pages-artifact and actions/deploy-pages.
  • Copyright and license header are present on all new files (Apache-2.0 on the workflow and the home page, a CC-BY-4.0 notice in the README).

AI assistance: this contribution was written with Claude Code and reviewed by the contributor.

🤖 Generated with Claude Code

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>
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>
@matbmoser matbmoser changed the title ci: publish GitHub Pages with a home page that lists the tutorials ci: publish GitHub Pages with a tutorials home page, and a proper README Nov 25, 2026
…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>
@matbmoser matbmoser changed the title ci: publish GitHub Pages with a tutorials home page, and a proper README ci: publish GitHub Pages with every tutorial as a site, a home page and a proper README Nov 25, 2026
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>
@matbmoser
matbmoser marked this pull request as ready for review November 25, 2026 08:57
@matbmoser
matbmoser requested a review from bmg13 as a code owner November 25, 2026 08:57
@matbmoser
matbmoser merged commit 3249f6d into eclipse-tractusx:main Nov 25, 2026
6 checks passed
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.

1 participant