-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.js
35 lines (33 loc) · 958 Bytes
/
nuxt.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
35
import theme from '@nuxt/content-theme-docs'
import interpolateSourceCode from './lib/interpolate-source-code'
export default theme({
css: [
'assets/css/main.css'
],
docs: {
primaryColor: '#E24F55'
},
hooks: {
'content:file:beforeParse': interpolateSourceCode
},
// Trying ~/plugins/vue-json-tree-view.js resolves to /node_modules/@nuxt/content-theme-docs/src/plugins/vue-json-tree-view.js
// plugins: [`${__dirname}/plugins/vue-json-tree-view.js`]
// external link icon
// https://github.com/nuxt/content/issues/398
content: {
markdown: {
remarkExternalLinks: {
content: {
type: "element",
tagName: "icon-external-link",
properties: {
className: ["w-4", "h-4", "ml-1", "-mt-1"],
},
},
contentProperties: {
className: ["inline-block", "align-middle", "text-gray-600", "dark:text-gray-400"],
},
},
},
},
})