feat: working table of contents

This commit is contained in:
grassblock 2025-06-07 17:53:46 +08:00
parent 29b1fa4afb
commit 856a8f2795
5 changed files with 98 additions and 34 deletions

View file

@ -3,7 +3,7 @@ import { defineConfig } from 'astro/config';
import sitemap from '@astrojs/sitemap';
import mdx from '@astrojs/mdx';
import remarkToc from 'remark-toc';
import cloudflare from '@astrojs/cloudflare';
@ -21,9 +21,6 @@ export default defineConfig({
theme: 'nord',
wrap: true
},
remarkPlugins: [
[remarkToc, { heading: 'Contents', maxDepth: 3 }]
]
},
integrations: [sitemap(), mdx()],