docs: add clean markdown version of all documentation pages (#11308)
* added route to book * added to resources * added route to ui * added to user guide
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import "dotenv/config"
|
||||
|
||||
import { defineDocumentType, makeSource } from "contentlayer/source-files"
|
||||
import { rehypeComponent } from "./src/lib/rehype-component"
|
||||
import rehypeSlug from "rehype-slug"
|
||||
import { uiRehypePlugin } from "../../packages/remark-rehype-plugins/src"
|
||||
import { ExampleRegistry } from "./src/registries/example-registry"
|
||||
|
||||
export const Doc = defineDocumentType(() => ({
|
||||
name: "Doc",
|
||||
@@ -29,7 +30,15 @@ export default makeSource({
|
||||
contentDirPath: "./src/content",
|
||||
documentTypes: [Doc],
|
||||
mdx: {
|
||||
rehypePlugins: [[rehypeComponent], [rehypeSlug]],
|
||||
rehypePlugins: [
|
||||
[
|
||||
uiRehypePlugin,
|
||||
{
|
||||
exampleRegistry: ExampleRegistry,
|
||||
},
|
||||
],
|
||||
[rehypeSlug],
|
||||
],
|
||||
mdxOptions: (options) => {
|
||||
return {
|
||||
...options,
|
||||
|
||||
Reference in New Issue
Block a user