-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
144 lines (140 loc) · 3.32 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
app: {
head: {
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1',
link: [
{
rel: 'stylesheet',
href: 'https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.9/katex.min.css',
media: 'print',
onload: "this.media='all'",
},
{
rel: 'stylesheet',
href: 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css',
media: 'print',
onload: "this.media='all'",
},
],
htmlAttrs: {
lang: 'en',
},
},
pageTransition: { name: 'page', mode: 'out-in' },
},
devtools: { enabled: true },
css: ['~/assets/css/main.css'],
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
modules: [
'@nuxt/content',
'@nuxt/icon',
'@nuxt/image',
'@nuxt/eslint',
'@nuxtjs/i18n',
'nuxt-toc',
'@nuxtjs/color-mode',
'@nuxtjs/seo',
'@nuxtjs/mdc',
'nuxt-easy-lightbox',
'nuxt-monaco-editor',
],
mdc: {
remarkPlugins: {
// emoji: {
// src: 'remark-emoji'
// }
},
components: {
map: {
input: 'ProseInput',
},
},
},
i18n: {
vueI18n: './i18n.config.ts', // if you are using custom path, default
defaultLocale: 'en',
locales: [
{ code: 'en', iso: 'en-US', name: 'English' },
{ code: 'zh-CN', iso: 'zh-CN', name: '简体中文' },
{ code: 'zh-TW', iso: 'zh-TW', name: '繁體中文' },
{ code: 'es', iso: 'es-ES', name: 'Español' },
{ code: 'fr', iso: 'fr-FR', name: 'Français' },
{ code: 'de', iso: 'de-DE', name: 'Deutsch' },
{ code: 'ja', iso: 'ja-JP', name: '日本語' },
{ code: 'ko', iso: 'ko-KR', name: '한국어' },
{ code: 'ru', iso: 'ru-RU', name: 'Русский' },
{ code: 'uk', iso: 'uk-UA', name: 'Українська' },
],
strategy: 'prefix_and_default',
detectBrowserLanguage: {
useCookie: true,
cookieKey: 'i18n_redirected',
alwaysRedirect: true,
fallbackLocale: 'en',
},
},
plugins: [
// '~/plugins/vue-awesome-paginate.js'
'~/plugins/mermaid.client.js',
'~/plugins/aos.client.js',
],
generate: {
routes: ['/feed.xml'],
},
icon: {
clientBundle: {
scan: true,
},
},
nitro: {
prerender: {
failOnError: false,
},
},
content: {
experimental: {
search: {
indexed: true,
},
},
highlight: {
theme: {
default: 'everforest-light',
dark: 'everforest-dark',
light: 'everforest-light',
},
preload: ['python', 'c', 'java', 'go'],
},
markdown: {
mdc: false,
remarkPlugins: {
'remark-math': {},
'remark-gfm': {},
'remark-github-beta-blockquote-admonitions': {},
'remark-rehype': {
footnoteBackContent: '^',
},
},
rehypePlugins: {
'rehype-katex': {
output: 'html', // the default value is 'htmlAndMathml'
},
},
},
},
colorMode: {
classSuffix: '',
},
site: {
url: 'https://vardar-example.xyz/',
name: 'Vardar Example Site',
description: 'Example site of Vardar for demenstration',
},
});