Skip to content

Commit b711bcc

Browse files
author
abrulic
committed
removed postcss and updated vitest dependencies
1 parent 704efe6 commit b711bcc

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,13 @@ pnpm install
9797
```
9898
3. 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
106104
pnpm 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+
108109
7. Happy coding!

content-collections.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { posix } from "node:path"
12
import { defineCollection, defineConfig } from "@content-collections/core"
23
import { compileMDX } from "@content-collections/mdx"
34
import 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+
}
5053
const stripExt = (s: string) => s.replace(/\.(md|mdx)$/i, "")
5154
const stripTrailingIndex = (s: string) => s.replace(/\/index$/i, "")
5255

postcss.config.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)