docs: redesign table of content (#12647)
* implement toc * added to projects * fixes and adapt for references * added product frontmatter * remove action menu from 404 pages
This commit is contained in:
1 parent
490bd7647f
commit
009d00f27d
293 files changed
+1975
-506
No files matched your search
@@ -11,8 +11,11 @@ import {
|
||||
resolveAdmonitionsPlugin,
|
||||
crossProjectLinksPlugin,
|
||||
prerequisitesLinkFixerPlugin,
|
||||
remarkAttachFrontmatterDataPlugin,
|
||||
recmaInjectMdxDataPlugin,
|
||||
} from "remark-rehype-plugins"
|
||||
import bundleAnalyzer from "@next/bundle-analyzer"
|
||||
import withExtractedTableOfContents from "@stefanprobst/rehype-extract-toc"
|
||||
|
||||
const withMDX = mdx({
|
||||
extension: /\.mdx?$/,
|
||||
@@ -92,12 +95,15 @@ const withMDX = mdx({
|
||||
checkLinksType: "value",
|
||||
},
|
||||
],
|
||||
[withExtractedTableOfContents],
|
||||
],
|
||||
remarkPlugins: [
|
||||
[remarkFrontmatter],
|
||||
[remarkDirective],
|
||||
[resolveAdmonitionsPlugin],
|
||||
[remarkAttachFrontmatterDataPlugin],
|
||||
],
|
||||
recmaPlugins: [[recmaInjectMdxDataPlugin]],
|
||||
jsx: true,
|
||||
},
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user