Repository navigation
chore(docs): install the Miragon docs kit as @miragon/docs-starter - #298
Merged
Merged
Conversation
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.
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.
Why
The docs site carried a copy of the Miragon docs kit (kit 1.25.1) in
docs/.vitepress/miragon/, vendored from thedocs-siteskill in Miragon/corporate-identity and guarded by a kit check. The kit now ships as the npm package@miragon/docs-starterfrom 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.mdin Miragon/brand-toolbox:docs/package.json:@miragon/docs-starter1.0.0 (exact pin); theviteoverride from 6.4.3 to 6.4.5 as in the kit's example consumer;@fontsource-variable/geist(-mono)(the package brings them) and thecheck:kitscript removed.config.tsimportsmiragonDocsfrom@miragon/docs-starter,theme/index.tsextends@miragon/docs-starter/theme. The landing page (HomeLanding.vue,LandingDemo.vue) stays as it was.docs/.vitepress/miragon/anddocs/public/logo/miragon-komet-blau.svg; the package serves the favicon under the same URL in dev and copies it into the build.build-docs.ymlanddeploy-docs.yml..miragon/brand.json: theignorierenentry for the kit and its sentence in_comment..miragon/product-shots.jsonused the deleteddocs/public/logo/miragon-komet-blau.svgas 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 needsnpm ciindocs/first.docs/contributing/index.md: the "Docs site" section names the package instead of the vendored folder andcheck.mjs.What behaves differently with kit 1.32.0 (changes between 1.25.1 and 1.32.0, taken as they come):
ZoomOverlay);data-zoom="off"opts an element out, images inside links stay links.githubStars: falsenow keeps the star prompt (without a number);starPrompt: falseis new. This site sets neither.Verification
npm installindocs/: lockfile updated;viteresolves to 6.4.5 andmermaidto a single 12.3.0.DOCS_BASE=/bpmn-to-code/ npm run buildindocs/: green.vitepress preview(base/bpmn-to-code/) andvitepress dev, checked with Playwright: the start page,getting-started/gradleandoverview/whyrender with the comet and product name in the title, the legal row, Geist, and no console errors or failed requests;logo/miragon-komet-blau.svganswers 200 in both.docs/package.jsondependencies are exact pins (whatmiragon/pin-npm-dependenciesenforces in CI); the action itself was not run locally.npm run devthrough portless (ranvitepress devdirectly), regenerating the product shots with the new icon path, dark mode.Refs Miragon/corporate-identity#102