-
Notifications
You must be signed in to change notification settings - Fork 11
/
config.js
executable file
·140 lines (140 loc) · 3.83 KB
/
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
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
let baseURL = null
const publicUrl = process.env.PUBLIC_URL
if (publicUrl) {
baseURL = publicUrl.endsWith("/") ? publicUrl : publicUrl + "/"
}
module.exports = {
/**
* Extra tags to be injected to the page HTML `<head>`
*
* ref:https://v1.vuepress.vuejs.org/config/#head
*/
head: [
['meta', { charset: 'utf-8' }],
['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }],
['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }],
['link', { rel: "shortcut icon", href: "https://notification.canada.ca/static/images/favicon.ico" }],
],
title: "GC Notify | Notification GC",
base: baseURL || null,
locales: {
'/en/': {
lang: 'en-CA',
title: "GC Notify",
description: 'Integrate directly with the GC Notify API'
},
'/fr/': {
lang: 'fr-CA',
title: 'Notification GC',
description: 'Intégration directe à l`API Notification GC'
}
},
/**
* Theme configuration, here is the default theme configuration for VuePress.
*
* ref:https://v1.vuepress.vuejs.org/theme/default-theme-config.html
*/
themeConfig: {
logo: 'https://assets.notification.canada.ca/static/gov-canada-en.svg',
editLinks: true,
lastUpdated: true,
nextLinks: true,
prevLinks: true,
docsRepo: 'cds-snc/notification-documentation',
docsDir: 'src',
docsBranch: 'main',
smoothScroll: true,
locales: {
'/en/': {
logo: 'https://assets.notification.canada.ca/static/gov-canada-en.svg',
selectText: 'Languages',
label: 'English',
ariaLabel: 'Languages',
siteSubtitle: 'API documentation',
backToNotifyLink: 'https://notification.canada.ca',
backToNotifyText: 'Back to GC Notify',
editLinkText: 'Edit this page on GitHub',
lastUpdated: 'Last updated',
serviceWorker: {
updatePopup: {
message: "New content is available.",
buttonText: "Refresh"
}
},
nav: [
{ text: "Français", link: '/fr/' },
],
sidebarDepth: 1,
sidebar: {
'/en/': [
'/en/',
'/en/start',
'/en/send',
'/en/status',
'/en/testing',
'/en/keys',
'/en/limits',
'/en/callbacks',
'/en/architecture',
'/en/clients',
]
}
},
'/fr/': {
logo: 'https://assets.notification.canada.ca/static/gov-canada-fr.svg',
selectText: 'Langues',
label: 'Français',
ariaLabel: 'Langues',
siteSubtitle: 'Documentation API',
backToNotifyLink: 'https://notification.canada.ca?lang=fr',
backToNotifyText: 'Retour à Notification GC',
editLinkText: 'Modifier cette page sur GitHub',
lastUpdated: 'Dernière mise à jour ',
serviceWorker: {
updatePopup: {
message: "Du nouveau contenu est disponible.",
buttonText: "Actualiser"
}
},
nav: [
{ text: "English", link: '/en/' },
],
sidebarDepth: 1,
sidebar: {
'/fr/': [
'/fr/',
'/fr/commencer',
'/fr/envoyer',
'/fr/etat',
'/fr/essai',
'/fr/cles',
'/fr/limites',
'/fr/rappel',
'/fr/architecture',
'/fr/clients',
]
}
},
},
},
/**
* Apply plugins,ref:https://v1.vuepress.vuejs.org/zh/plugin/
*/
plugins: [
[
'@vuepress/last-updated',
{
transformer: (timestamp, lang) => {
return new Date(timestamp).toLocaleDateString(lang)
}
},
],
'@vuepress/back-to-top',
[
'@vuepress/google-analytics',
{
'ga': 'UA-102484926-14'
}
],
]
}