Commit 7728535
Upgrade to Astro 7 (#3243)
* 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>
* Set compressHTML: true
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent f707928 commit 7728535
4 files changed
Lines changed: 692 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 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
| 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