Commit d2a2056
Upgrade to Astro 7 and fix breaking changes
Bumps astro to ^7.0.9 and @astrojs/mdx to ^7.0.3, and resolves the
breaking changes surfaced by the upgrade:
- Header.astro: mark the theme-switcher <script> as `is:inline`. Astro 7
hands non-inline scripts to Vite for bundling, which cannot resolve the
`/docs/js/modules/theme-switcher.js` public asset and failed the build.
Inlining emits it verbatim so the browser resolves it at runtime.
- astro.config.mjs: move remark plugins from the deprecated
`markdown.remarkPlugins` into `markdown.processor: unified({ ... })`
from @astrojs/markdown-remark (added as a direct dependency since it is
now imported by the config). `trailingSlash` was not honored in its location, so it was removed, and drop the dead `extendDefaultPlugins`.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 773caf5 commit d2a2056
4 files changed
Lines changed: 691 additions & 127 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
0 commit comments