Skip to content

chore(docs): install the Miragon docs kit as @miragon/docs-starter - #298

Merged
emaarco merged 1 commit into
mainfrom
chore/docs-starter
Nov 19, 2026
Merged

emaarco merged 1 commit into
mainfrom
chore/docs-starter

Conversation

@emaarco

@emaarco emaarco commented Nov 19, 2026

Copy link
Copy Markdown
Member

Why

The docs site carried a copy of the Miragon docs kit (kit 1.25.1) in docs/.vitepress/miragon/, vendored from the docs-site skill in Miragon/corporate-identity and guarded by a kit check. The kit now ships as the npm package @miragon/docs-starter from Miragon/brand-toolbox (1.0.0 = kit 1.32.0), so the docs install it and keep no copy; Dependabot (which already watches /docs) bumps it like any other dependency.

What

Following kits/docs/MIGRATION.md in Miragon/brand-toolbox:

  • docs/package.json: @miragon/docs-starter 1.0.0 (exact pin); the vite override from 6.4.3 to 6.4.5 as in the kit's example consumer; @fontsource-variable/geist(-mono) (the package brings them) and the check:kit script removed.
  • config.ts imports miragonDocs from @miragon/docs-starter, theme/index.ts extends @miragon/docs-starter/theme. The landing page (HomeLanding.vue, LandingDemo.vue) stays as it was.
  • Deleted docs/.vitepress/miragon/ and docs/public/logo/miragon-komet-blau.svg; the package serves the favicon under the same URL in dev and copies it into the build.
  • The step "Check the Miragon docs kit" goes from build-docs.yml and deploy-docs.yml.
  • .miragon/brand.json: the ignorieren entry for the kit and its sentence in _comment.
  • Beyond the standard steps:
    • .miragon/product-shots.json used the deleted docs/public/logo/miragon-komet-blau.svg as the icon of the README shot. It now points at the same unchanged file inside the package, docs/node_modules/@miragon/docs-starter/assets/logo/miragon-komet-blau.svg, so regenerating the shots needs npm ci in docs/ first.
    • docs/contributing/index.md: the "Docs site" section names the package instead of the vendored folder and check.mjs.

What behaves differently with kit 1.32.0 (changes between 1.25.1 and 1.32.0, taken as they come):

  • Images and Mermaid diagrams in a doc page open full screen on click (ZoomOverlay); data-zoom="off" opts an element out, images inside links stay links.
  • Mermaid's section-coloured diagrams (mindmap, timeline, pie, git graph and similar) get the CI's greys instead of Mermaid's palette. The docs have no Mermaid diagrams today.
  • githubStars: false now keeps the star prompt (without a number); starPrompt: false is new. This site sets neither.

Verification

  • npm install in docs/: lockfile updated; vite resolves to 6.4.5 and mermaid to a single 12.3.0.
  • DOCS_BASE=/bpmn-to-code/ npm run build in docs/: green.
  • vitepress preview (base /bpmn-to-code/) and vitepress dev, checked with Playwright: the start page, getting-started/gradle and overview/why render with the comet and product name in the title, the legal row, Geist, and no console errors or failed requests; logo/miragon-komet-blau.svg answers 200 in both.
  • All docs/package.json dependencies are exact pins (what miragon/pin-npm-dependencies enforces in CI); the action itself was not run locally.
  • Not checked: the GitHub Pages deploy itself, npm run dev through portless (ran vitepress dev directly), regenerating the product shots with the new icon path, dark mode.

Refs Miragon/corporate-identity#102

The docs site takes the kit from the npm package @miragon/docs-starter 1.0.0 (kit 1.32.0) instead of the copy of kit 1.25.1 in docs/.vitepress/miragon/. The kit check in build-docs.yml and deploy-docs.yml goes with the copy, as does its brand-lint ignore. The vite override follows the kit's example consumer to 6.4.5, and the product-shots icon points at the comet the package ships.
@emaarco
emaarco merged commit de27184 into main Nov 19, 2026
13 checks passed
@emaarco
emaarco deleted the chore/docs-starter branch November 19, 2026 13:06
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