feat: working table of contents
This commit is contained in:
parent
29b1fa4afb
commit
856a8f2795
5 changed files with 98 additions and 34 deletions
|
@ -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()],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue