-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
vuepress.config.ts
108 lines (106 loc) 路 2.51 KB
/
vuepress.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
import { defaultTheme } from 'vuepress'
import { docsearchPlugin } from '@vuepress/plugin-docsearch'
import { googleAnalyticsPlugin } from '@vuepress/plugin-google-analytics'
import { pwaPlugin } from '@vuepress/plugin-pwa'
const isProd = process.env.NODE_ENV === "production"
module.exports = {
title: "Awesome NuxtJS",
description: "馃帀 A curated list of awesome things related to NuxtJS",
head: [
["link", {
rel: "icon",
href: `/logo.png`
}],
["link", {
rel: "manifest",
href: "/manifest.webmanifest"
}],
["meta", {
name: "theme-color",
content: "#3eaf7c"
}],
["meta", {
name: "apple-mobile-web-app-capable",
content: "yes"
}],
[
"meta",
{
name: "apple-mobile-web-app-status-bar-style",
content: "black"
},
],
[
"link",
{
rel: "apple-touch-icon",
href: `/icons/apple-touch-icon-152x152.png`
},
],
[
"link",
{
rel: "mask-icon",
href: "/icons/safari-pinned-tab.svg",
color: "#3eaf7c",
},
],
[
"meta",
{
name: "msapplication-TileImage",
content: "/icons/msapplication-icon-144x144.png",
},
],
["meta", {
name: "msapplication-TileColor",
content: "#fff"
}],
],
base: "/",
theme: defaultTheme({
repo: "ansidev/awesome-nuxt",
editLink: true,
lastUpdatedText: "Last Updated",
sidebar: [
{
text: "Resources",
collapsible: false,
children: [
"/resources/official-resources",
"/resources/community",
"/resources/modules",
"/resources/tools",
"/resources/mention-of-nuxt",
"/resources/tutorials",
"/resources/blogs",
"/resources/books",
"/resources/starter-template",
"/resources/docker",
"/resources/official-examples",
"/resources/community-examples",
"/resources/open-source-projects-using-nuxt",
"/resources/projects-using-nuxt",
"/resources/showcase",
],
}
],
themePlugins: {
// only enable git plugin in production mode
git: isProd,
},
}),
plugins: [
docsearchPlugin({
appId: process.env.DOCSEARCH_APP_ID!,
apiKey: process.env.DOCSEARCH_API_KEY!,
indexName: process.env.DOCSEARCH_INDEX_NAME!
}),
googleAnalyticsPlugin({
id: process.env.GA_ID!
}),
pwaPlugin({
skipWaiting: true
}),
],
};