Skip to content

Commit 3e88371

Browse files
committed
Update mdx-bundler links
1 parent 120d082 commit 3e88371

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

examples/mdx-bundler/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# mdx-bundler + Code Hike
2+
3+
See [this guide](https://codehike.org/docs/installation/mdx-bundler) or try it on [Stackblitz](https://stackblitz.com/github/code-hike/codehike/tree/main/examples/mdx-bundler).

examples/mdx-bundler/src/posts.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@ import { remarkCodeHike } from "@code-hike/mdx"
44
import theme from "shiki/themes/material-palenight.json"
55
import { bundleMDX } from "mdx-bundler"
66

7-
const POSTS_PATH = path.join(process.cwd(), "posts")
8-
97
export function getPostNames() {
108
return fs
11-
.readdirSync(POSTS_PATH)
9+
.readdirSync("posts")
1210
.filter((path) => /\.mdx?$/.test(path))
1311
.map((fileName) => {
1412
const postName = fileName.replace(/\.mdx?$/, "")

0 commit comments

Comments
 (0)