Skip to content

Commit 96a5c84

Browse files
committed
Merge branch 'main' of github.com:generativemodels/generativemodels.github.io
2 parents 6e76346 + 63c0687 commit 96a5c84

28 files changed

+21940
-2382
lines changed

astro.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import { defineConfig } from 'astro/config';
77
import remarkMath from 'remark-math'
88
import rehypeKatex from 'rehype-katex'
99
import { typst } from 'astro-typst';
10-
10+
import rehypeToc from '@jsdevtools/rehype-toc';
11+
import rehypeSlug from 'rehype-slug';
1112

1213
// https://astro.build/config
1314
export default defineConfig({
@@ -46,6 +47,8 @@ export default defineConfig({
4647
strict: false,
4748
},
4849
],
50+
rehypeSlug,
51+
rehypeToc,
4952
],
5053
},
5154
vite: { ssr: { external: ["@myriaddreamin/typst-ts-node-compiler"] } },

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,18 @@
1212
"@astrojs/mdx": "^4.3.4",
1313
"@astrojs/rss": "^4.0.12",
1414
"@astrojs/sitemap": "^3.5.1",
15+
"@jsdevtools/rehype-toc": "^3.0.2",
1516
"@myriaddreamin/typst-ts-node-compiler": "0.6.1-rc3",
17+
"@types/jsdom": "^27.0.0",
1618
"astro": "^5.13.5",
1719
"astro-typst": "^0.12.1",
20+
"jsdom": "^27.0.0",
1821
"rehype-katex": "^7.0.1",
22+
"rehype-slug": "^6.0.0",
23+
"rehype-stringify": "^10.0.1",
24+
"rehype-toc": "^3.0.2",
1925
"remark-math": "^6.0.0",
20-
"sharp": "^0.34.2"
26+
"sharp": "^0.34.2",
27+
"unified": "^11.0.5"
2128
}
2229
}

0 commit comments

Comments
 (0)