Skip to content

Modernize build and repository infrastructure - #13

Draft
koppor wants to merge 3 commits into
mainfrom
modernize
Draft

koppor wants to merge 3 commits into
mainfrom
modernize

Conversation

@koppor

@koppor koppor commented Oct 10, 2026 •

Copy link
Copy Markdown

TODOs:

Claude was unaware that a markdown-lint rule needs to be disabled. Therefore, it introduced

grafik

Modernizes the repository infrastructure. Fixes #12.

GitHub Actions (all actions SHA-pinned with version comments, Dependabot-compatible)

  • build.yml: builds the Docker image from docker/Dockerfile (layer-cached via GHA cache), renders HTML and PDF inside the container with the Maven wrapper, verifies that the committed UML diagrams are up to date, and uploads the rendered documents as artifacts.
  • lint.yml: markdownlint (blocking), heylogs check of CHANGELOG.md (blocking), textlint and Vale (hints only, continue-on-error).
  • check-links.yml: linkspector on every push/PR and monthly (replaces the linkchecker recommendation in the README). Runs the CLI via npx; needs sysctl kernel.apparmor_restrict_unprivileged_userns=0 on Ubuntu 24.04 runners for Puppeteer's Chromium sandbox.
  • Dependabot for Maven, GitHub Actions, npm and Docker (weekly, grouped).

Note on the organization's Actions policy: DavidAnson/markdownlint-cli2-action and jbangdev/jbang-action are refused at workflow startup (startup_failure), while GitHub-owned, Docker and vale-cli/vale-action actions start fine. This matches a policy that only allows actions from GitHub and verified creators. Therefore markdownlint runs via npm run markdownlint, heylogs via JBang installed with its install script, and linkspector via npx. If the org allowlist is extended (DavidAnson/*, jbangdev/*, umbrelladocs/*), these steps can be switched to the actions.

Fix for #12 (SVGs missing on GitHub)

PlantUML stays (no switch to Mermaid). The rendered SVGs are now written to src/doc/uml and committed, so the relative image links in the Markdown sources resolve on GitHub. The build workflow fails if the committed SVGs are stale (two renders in the same image were byte-identical, so the check is stable). Re-render with ./mvnw generate-resources.

Build

  • Docker image based on pandoc/latex (official Pandoc image with TeX Live, LuaLaTeX included), plus Java 21 (full JRE, PlantUML needs the font manager), Graphviz and rsvg-convert. PDF rendering uses --pdf-engine=lualatex.
  • The HTML output is self-contained (--embed-resources): CSS and SVGs are inlined. Before, the HTML referenced the CSS via an absolute path of the build machine.
  • Maven wrapper (mvnw, Maven 3.9.16); enforcer requires Maven 3.8.1+ and Java 17+.
  • Plugin updates: plantuml-maven-plugin 0.2.15, PlantUML 1.2026.8, license-maven-plugin 2.7.1, maven-assembly-plugin 3.8.0, exec-maven-plugin 3.6.4 (the HTML profile was still on 1.6.0), maven-enforcer-plugin 3.6.3. The resources plugin and the PDF image path Lua filter are no longer needed.
  • Version bumped to 1.1.0-SNAPSHOT, packaging pom.

Changelog and linting

  • CHANGELOG.md in Keep a Changelog format, generated from doc/changelog.md and doc/changes_1.0.0.md (now removed), with an Unreleased section for this PR.
  • .markdownlint.yml (line length, blockquote and first-heading rules relaxed to fit the OFT comment style), .markdownlint-cli2.yaml, .textlintrc.json + package.json (markdownlint-cli2, textlint with common misspellings), .vale.ini (write-good without E-Prime/TooWordy), .linkspector.yml, .editorconfig, .gitattributes.
  • All Markdown files were auto-fixed by markdownlint (trailing spaces, blank lines around headings, final newline). One real typo fixed by textlint ("Univerity").
  • linkspector found 28 broken links in the specification sources, all fixed: typos (design_decision.md, bibilography.md, runtime.md, deployment.md, concerns.md for concepts.md), wrong relative paths from sub-chapters, case-mismatched anchors (#SRS, #autoyummibox), the moved OpenFastTrace user guide (blob/master/doc/user_guide.md is gone), and the dead http://itsallcode.org. The TOC linked a non-existent "Constraints" chapter; a template stub src/doc/constraints.md was added and included in spec.files.
  • Sub-chapters now reference diagrams as ../uml/... (correct on GitHub); a new Lua filter image_path_converter.lua strips the ../ for Pandoc, which renders everything from src/doc.

Removed

  • Eclipse metadata (.classpath, .project, .settings, .externalToolBuilders, launch/) and the Jenkinsfile. README updated accordingly.

Verified locally

  • ./mvnw clean package and ./mvnw compile -P render-pdf inside the Docker image: HTML (11 embedded SVGs), PDF (diagrams render), zip and tar.gz produced.
  • markdownlint, textlint, heylogs and linkspector pass locally. Vale reports style suggestions only.

🤖 Generated with Claude Code

- GitHub Actions: build (HTML + PDF in Docker, diagram freshness check,
  artifacts) and lint (markdownlint, heylogs, textlint, Vale) workflows
- Dependabot for Maven, GitHub Actions, npm and Docker
- Commit rendered UML diagrams to src/doc/uml so they show on GitHub (#12)
- Docker image based on pandoc/latex with Java 21, Graphviz and
  rsvg-convert; PDF rendered with LuaLaTeX
- Self-contained HTML output (CSS and SVGs embedded)
- Maven wrapper, updated Maven plugins and PlantUML
- CHANGELOG.md in Keep a Changelog format replaces doc/changelog.md
- markdownlint, textlint, Vale and editorconfig configuration;
  Markdown files auto-fixed by markdownlint
- Remove Eclipse metadata, launch configurations and Jenkinsfile

Fixes #12

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
- Make the Maven wrapper script executable
- SHA-pin all GitHub Actions (with version comments for Dependabot)
- Run markdownlint (npm) and heylogs (JBang install script) directly:
  the organization's Actions policy refuses the DavidAnson and jbangdev
  actions at workflow startup
- Add a link check with linkspector (replaces the linkchecker hint)
- Fix 28 broken links in the Markdown sources and add the missing
  "Constraints" chapter that the table of contents linked to
- Reference diagrams from sub-chapters as "../uml/..." so they show on
  GitHub; a Lua filter strips the prefix for Pandoc

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.

cl_quality_tree.svg is 404

1 participant