Skip to content

Commit bc2b6ac

Browse files
committed
Make nextra compatible with stackblitz
1 parent 458d82f commit bc2b6ac

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

examples/nextra/next.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const { remarkCodeHike } = require("@code-hike/mdx")
2+
const theme = require("shiki/themes/material-palenight.json")
3+
4+
const withNextra = require("nextra")({
5+
theme: "nextra-theme-docs",
6+
themeConfig: "./theme.config.mjs",
7+
mdxOptions: {
8+
remarkPlugins: [[remarkCodeHike, { theme }]],
9+
},
10+
})
11+
12+
module.exports = withNextra()

examples/nextra/next.config.mjs

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

0 commit comments

Comments
 (0)