forked from system76/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.js
111 lines (90 loc) · 2.65 KB
/
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
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
import contentHighlighter from './modules/content-highlighter'
import githubContributors from './modules/github-contributors'
import linkFixes from './modules/link-fixes'
export default async () => ({
target: 'static',
components: true,
content: {
markdown: {
highlighter: await contentHighlighter(),
rehypePlugins: [
'~/plugins/content-replace'
]
}
},
head: {
description: 'Official System76 Support and useful documentation',
color: '#4e4540',
titleTemplate: title => (title !== '') ? `${title} - System76 Support` : 'System76 Support',
htmlAttrs: {
lang: 'en',
itemscope: true
},
meta: [
{ 'http-equiv': 'X-UA-Compatible', content: 'IE=edge,chrome=1' },
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'Official System76 Support and useful documentation' },
{ hid: 'og:title', property: 'og:title', content: 'System76 Support' },
{ hid: 'og:description', property: 'og:description', content: 'Official System76 Support and useful documentation' },
{ hid: 'twitter:title', name: 'twitter:title', content: 'System76 Support' },
{ hid: 'twitter:description', name: 'twitter:description', content: 'Official System76 Support and useful documentation' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
],
script: [
{
async: true,
defer: true,
'data-domain': 'support.system76.com',
src: 'https://plausible.io/js/plausible.js'
},
{
innerHTML: 'window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }'
}
],
__dangerouslyDisableSanitizers: ['script']
},
css: [
'@fortawesome/fontawesome-svg-core/styles.css',
'@system76/design/dist/minimal.common.css',
'@system76/components/dist/index.common.css',
'~/assets/styles/code-highlighting.css'
],
plugins: [
'~/plugins/components',
'~/plugins/font-awesome'
],
buildModules: [
'@nuxt/image',
'@nuxtjs/tailwindcss',
'nuxt-dynamic-images'
],
modules: [
'@nuxt/content'
],
loading: {
color: '#6ACAD8'
},
hooks: {
'content:file:beforeInsert': doc => Promise.all([
githubContributors(doc),
linkFixes(doc)
])
},
image: {
// Mirrored to tailwind breakpoints + some extra
screens: {
xs: 320,
sm: 640,
md: 768,
lg: 1024,
xl: 1280,
'2xl': 1536
}
},
tailwindcss: {
cssPath: '~assets/styles/tailwind.css'
}
})