-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
67 lines (66 loc) · 1.81 KB
/
nuxt.config.ts
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import { defineNuxtConfig } from 'nuxt'
import remarkEmoji from 'remark-emoji'
import rehypeSlug from 'rehype-slug'
import remarkSqueezeParagraphs from 'remark-squeeze-paragraphs'
import rehypeExternalLinks from 'rehype-external-links'
import remarkGfm from 'remark-gfm'
import rehypeSortAttributeValues from 'rehype-sort-attribute-values'
import rehypeSortAttributes from 'rehype-sort-attributes'
import rehypeRaw from 'rehype-raw'
// https://v3.nuxtjs.org/docs/directory-structure/nuxt.config
export default defineNuxtConfig({
ssr: true,
target: 'static',
head: {
// link: [
// {
// rel: 'stylesheet',
// href: 'https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;500;700&family=Roboto+Slab&family=Rubik:wght@300;400&display=swap'
// }
// ]
},
modules: [
'@nuxt/content',
'@nuxtjs/tailwindcss',
'nuxt-icon'
],
// https://content.nuxtjs.org
content: {
documentDriven: true,
highlight: {
theme: 'vitesse-dark',
preload: ['csharp', 'cpp', 'java', 'sql', 'python', 'rust', 'lisp', 'shell']
},
markdown: {
remarkPlugins: {
'remark-emoji': {
instance: remarkEmoji
},
'remark-squeeze-paragraphs': {
instance: remarkSqueezeParagraphs
},
'remark-gfm': {
instance: remarkGfm
}
},
rehypePlugins: {
'rehype-slug': {
instance: rehypeSlug
},
'rehype-external-links': {
instance: rehypeExternalLinks
},
'rehype-sort-attribute-values': {
instance: rehypeSortAttributeValues
},
'rehype-sort-attributes': {
instance: rehypeSortAttributes
},
'rehype-raw': {
instance: rehypeRaw,
passThrough: ['element']
}
}
}
}
})