-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnext.config.js
34 lines (31 loc) · 962 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 { getHighlighter, BUNDLED_LANGUAGES } = 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,
// custom grammar options, see the Shiki documentation for how to provide these options
{
id: 'pax',
scopeName: 'source.pax',
aliases: ['paxel'], // Along with id, aliases will be included in the allowed names you can use when writing markdown.
path: path.resolve(__dirname, 'public/grammar/pax.tmLanguage.json') // Use absolute path
}
]
})
}
}
})
module.exports = withNextra({
output: 'export',
trailingSlash: true,
images: {
unoptimized: true,
},
})