File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,12 +97,13 @@ pnpm install
9797```
98983 . Read through the README.md files in the project to understand our decisions.
9999
100- 4 . Add ` content ` folder
100+ 4 . Run ` pnpm run generate:docs ` script
101101
102- 5 . Run ` pnpm run generate:docs ` script
103-
104- 6 . Start the development server:
102+ 5 . Start the development server:
105103``` bash
106104pnpm run dev
107105```
106+
107+ 6 . After you see that everything works with the current content inside the ` content ` folder, remove those files and add your own
108+
1081097 . Happy coding!
Original file line number Diff line number Diff line change 1+ import { posix } from "node:path"
12import { defineCollection , defineConfig } from "@content-collections/core"
23import { compileMDX } from "@content-collections/mdx"
34import rehypeSlug from "rehype-slug"
@@ -46,7 +47,9 @@ const cleanSlug = (p: string) =>
4647 . map ( ( seg ) => seg . replace ( / ^ \d { 2 , } - / , "" ) )
4748 . join ( "/" )
4849
49- const toPosix = ( s : string ) => s . replace ( / \\ / g, "/" )
50+ const toPosix = ( s : string ) => {
51+ return posix . normalize ( s . replace ( / \\ / g, "/" ) )
52+ }
5053const stripExt = ( s : string ) => s . replace ( / \. ( m d | m d x ) $ / i, "" )
5154const stripTrailingIndex = ( s : string ) => s . replace ( / \/ i n d e x $ / i, "" )
5255
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments