generated from shuding/nextra-docs-template
-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathnext.config.js
34 lines (32 loc) · 865 Bytes
/
next.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
const { BUNDLED_LANGUAGES, getHighlighter } = require("shiki");
const path = require("path");
const withNextra = require("nextra")({
theme: "nextra-theme-docs",
themeConfig: "./theme.config.tsx",
mdxOptions: {
rehypePrettyCodeOptions: {
getHighlighter: (options) =>
getHighlighter({
...options,
langs: [
...BUNDLED_LANGUAGES,
// From https://github.com/1dot75cm/vscode-rpm-spec, thanks!
{
id: "spec",
scopeName: "source.spec",
aliases: ["rpmspec"],
path: path.join(__dirname, "public/spec.json"),
},
],
}),
},
},
});
module.exports = withNextra({
output: "export",
// Thanks for not having build-time image optimization :)
// TODO: fix this
images: {
unoptimized: true,
},
});