Commit 90937e6
docs: migrate to shared @fhir-toolkit/docs-theme (#3)
* chore(deps): migrate pnpm config from package.json to pnpm-workspace.yaml; bump packageManager to pnpm 11
- Remove `pnpm.onlyBuiltDependencies` from package.json (removed in pnpm 11)
- Create pnpm-workspace.yaml with allowBuilds map (esbuild, lefthook)
- Bump packageManager to pnpm@11.1.3
- Bump engines.pnpm to >=11.0.0
Removes the pnpm 10 pin that was a tactical measure during the Node 22
engine bump. Reference: https://pnpm.io/migration
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* docs: scaffold Astro + Starlight, replace VitePress
Replace docs/site/.vitepress/ with Astro 5 + Starlight 0.34.
docs/site/ path is preserved so deploy workflow references still work.
Stack notes:
- Starlight ships Expressive Code (copy buttons, diffs, line highlights),
Pagefind search, dark mode, asides, and Tabs out of the box
- Uses legacy content collections (src/content/config.ts +
legacy.collections: true in astro.config.mjs) — required for Starlight
0.34 SSG compatibility with the static route generator
- Sidebar autogenerates from directory rather than explicit slug entries,
avoiding a Starlight build-time slug resolution issue on 404 page
generation (known Starlight 0.34 limitation with content layers)
- Brand colours ported from VitePress custom.css (teal #1ad1b8, dark bg
#071019) via Starlight CSS custom property overrides
- CommandOutput.astro: labelled two-panel card rather than Tabs — command
and output are cause-effect pairs, not alternatives to switch between
- Hero.astro shim kept minimal (passes through to Starlight default)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* docs: migrate all VitePress content to Starlight content collection
Port 14 pages from docs/site/ flat VitePress layout to the Starlight
content collection at docs/site/src/content/docs/:
guide/: getting-started, validate, compare, normalize, info,
ci-cd, ai-agents, fhir-versions
reference/: cli, library-api, output-formats, exit-codes
ecosystem.md, index.mdx (splash homepage with CardGrid)
Per-page changes:
- Added Starlight frontmatter (title, description, sidebar.order)
- Updated internal links from /guide/foo to /fhir-resource-diff/guide/foo/
- Homepage converted to MDX to use Starlight <Card>/<CardGrid> components
- English Canadian spelling throughout (normalise, organisation, behaviour)
- No em dashes in any externally visible text
docs.yml: run install/build from docs/site/ working directory (separate
package), output path updated from .vitepress/dist to dist, removed
VitePress-specific --fetch-depth=0 flag.
Build verified: pnpm build in docs/site/ produces 15 pages, Pagefind
indexes 14 content pages, sitemap generated.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* docs(site): fix double base path, hero styling, and dark-mode contrast
Three targeted fixes to the Astro/Starlight migration:
1. Base path duplication (404s): All internal content links used absolute
paths like /fhir-resource-diff/guide/... but Starlight/Astro prepends
the configured base automatically. Stripped the prefix from every
internal link across all 14 content files, astro.config.mjs sidebar
entry, and the splash hero CTA.
2. Dark-mode contrast: Active sidebar items rendered solid teal background
with near-invisible text. Replaced with a left-border + accent-text
treatment using --sl-color-accent-low as a subtle fill, which passes
WCAG AA in both modes. Also fixed sidebar hover, right-nav active item,
inline code in headings, and body link colours in both themes.
3. Hero aesthetic: Added Space Grotesk Variable (@fontsource-variable) as
a display face on the splash hero H1 only, with letter-spacing and a
radial teal gradient backdrop behind the hero section. Copy unchanged.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* build: remove deprecated compiler options from tsconfig
* docs: migrate to shared @fhir-toolkit/docs-theme (Option B sync)
- Add shared theme files under docs/site/src/theme/ (tokens, styles, components)
synced from packages/docs-theme via scripts/sync.js
- Wire theme-teal.css + base.css into astro.config.mjs customCss
- Remove local CommandOutput.astro duplicate
- Clear custom.css to a placeholder comment (all styles now in shared theme)
- Custom landing page (index.astro) already present; theme tokens applied
* build: restore paths alias and suppress tsup-injected baseUrl deprecation
tsup 8.x injects baseUrl when paths is configured for DTS generation.
TypeScript 6.0 treats this as a deprecation error without ignoreDeprecations.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent c76cae9 commit 90937e6
34 files changed
Lines changed: 6928 additions & 267 deletions
File tree
- .github/workflows
- docs/site
- .vitepress
- theme
- src
- components
- content
- docs
- guide
- reference
- pages
- styles
- theme
- components
- styles
- tokens
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | 24 | | |
27 | 25 | | |
28 | 26 | | |
| |||
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
34 | | - | |
35 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
39 | | - | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
0 commit comments