Skip to content

docs: move images to docs/assets and prepare documentation versioning - #261

Merged
kthoms merged 2 commits into
mainfrom
feat/docs-versioning
Nov 25, 2026
Merged

kthoms merged 2 commits into
mainfrom
feat/docs-versioning

Conversation

@kthoms

@kthoms kthoms commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Takes over #68 and #69 by @sgort, rebuilt on current main (the original branches are ~200 commits behind and conflict on almost every moved file).

Refs #46

Changes

Move documentation images to docs/assets/

  • Documentation images moved from static/img/{documentation,get-started} to docs/assets/. Docusaurus only versions what lives in docs/, so this is the prerequisite for versioning.
  • 508 references in 98 Markdown files rewritten to paths relative to the Markdown file. The one HTML <img> with a width uses require(), as relative paths in a plain src are not resolved.
  • static/img/ keeps only the site-wide logo and favicon.
  • scripts/generate_erd_diagrams.py writes to the new location.
  • Link checker: relative links to files that exist on disk are treated as bundled assets (Docusaurus serves them under a hashed URL); relative image links whose file is missing are reported as missing-asset. Tests added.

Prepare documentation versioning

  • The navbar shows a version dropdown once versions.json exists. Until then the site is unchanged.
  • The BPMN copy and remark plugins also serve diagrams from versioned_docs/ at /bpmn/version-<x>/. Without this, BPMN viewers on versioned pages would fail to load.
  • README: how to reference images and how to cut a version.

Not taken over from #69

  • The 1.0.0 snapshot: the current docs describe 2.2.x. No version is cut in this PR; the first one is made at the next release with npm run docusaurus docs:version <version>.
  • Serving "Next" as the default: once versions exist, the newest release is served at /docs/ and the work in progress at /docs/next/ (Docusaurus defaults).
  • check-broken-references.js and its report: covered by the lychee-based link check (.devenv/scripts/check-links.py).
  • The extended README rewrite.

Verification

  • npm run typecheck clean
  • npm run build succeeds
  • Internal link check: 896 URLs, 0 broken
  • Link checker unit tests: 150 passing
  • Not verified yet: a build with an actual version snapshot (dropdown and versioned BPMN paths).

🤖 Generated with Claude Code

kthoms and others added 2 commits November 25, 2026 21:42
Documentation images move from static/img/ to docs/assets/ and are
referenced with paths relative to the Markdown file. Docusaurus only
versions what lives in docs/, so this is the prerequisite for
documentation versioning. static/img/ keeps the site-wide logo and
favicon.

The link checker now treats relative links to existing files as
bundled assets instead of page-relative URLs, and reports relative
image links whose file is missing.

Takes over the asset move from #68/#69.

Co-authored-by: Steven Gort <steven.gort@ictu.nl>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Once `docs:version` has created versions.json, the navbar shows a
version dropdown; the newest version is served at /docs/ and the
work in progress at /docs/next/. The BPMN copy and remark plugins
serve diagrams of versioned docs at /bpmn/version-<x>/. The README
describes image references and how to cut a version.

Takes over the versioning setup from #69 without cutting a version yet.

Refs #46

Co-authored-by: Steven Gort <steven.gort@ictu.nl>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 25, 2026 20:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@kthoms
kthoms merged commit 7a79fd6 into main Nov 25, 2026
3 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.

2 participants