-
-
Notifications
You must be signed in to change notification settings - Fork 136
/
docusaurus.config.js
161 lines (158 loc) · 3.9 KB
/
docusaurus.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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
module.exports = {
title: 'FoalTS',
tagline: 'Full-featured Node.js framework, with no complexity',
url: 'https://foalts.org',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/logo.png',
organizationName: 'FoalTS', // Usually your GitHub org/user name.
projectName: 'foal', // Usually your repo name.
i18n: {
defaultLocale: 'en',
locales: ['en', 'fr', 'es', 'id'],
localeConfigs: {
en: {
label: 'EN',
},
fr: {
label: 'FR',
},
es: {
label: 'ES',
},
id: {
label: 'Bahasa Indonesia',
},
},
},
scripts: [
'https://m.servedby-buysellads.com/monetization.custom.js',
{ src: 'https://plausible.io/js/script.js', defer: true, 'data-domain': 'foalts.org' }
],
themeConfig: {
image: 'img/meta-image.png',
// announcementBar: {
// id: '...',
// content:
// '👉 ... ✨',
// },
algolia: {
appId: 'VRIT2ZBVSX',
apiKey: '0e5ec5503a51d81abd83ed758f9e9c4e',
indexName: 'foalts',
// Optional: see doc section bellow
contextualSearch: true,
// Optional: Algolia search parameters
searchParameters: {},
//... other Algolia params
},
colorMode: {
defaultMode: 'light',
disableSwitch: true,
respectPrefersColorScheme: false,
},
navbar: {
title: 'FoalTS',
style: 'primary',
hideOnScroll: true,
logo: {
alt: 'FoalTS Logo',
src: 'img/logo.png',
},
items: [
{
to: 'docs/',
activeBasePath: 'docs',
label: 'Docs',
position: 'left',
},
{
to: 'blog',
label: 'Blog',
position: 'left'
},
{
to: 'newsletter',
label: 'Newsletter',
position: 'left'
},
{
type: 'docsVersionDropdown',
position: 'right',
dropdownActiveClassDisabled: true,
},
{
type: 'localeDropdown',
position: 'right',
},
{
href: 'https://github.com/FoalTS/foal',
position: 'right',
className: 'header-github-link',
'aria-label': 'GitHub repository',
},
{
href: 'https://twitter.com/FoalTs',
position: 'right',
className: 'header-twitter-link',
'aria-label': 'Twitter profile',
},
{
href: 'https://discord.gg/QUrJv98',
position: 'right',
className: 'header-discord-link',
'aria-label': 'Discord chat',
},
],
}
},
plugins: [
'docusaurus-plugin-sass',
async function myPlugin(context, options) {
return {
name: "docusaurus-tailwindcss",
configurePostCss(postcssOptions) {
// Appends TailwindCSS and AutoPrefixer.
postcssOptions.plugins.push(require("tailwindcss"));
postcssOptions.plugins.push(require("autoprefixer"));
return postcssOptions;
},
};
},
],
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl:
'https://github.com/FoalTS/foal/edit/master/docs/',
lastVersion: "current",
versions: {
current: {
"label": require('../lerna.json').version + ' (latest)',
},
'1.x': {
'label': '1.x',
noIndex: true
}
}
},
blog: {
showReadingTime: true,
editUrl:
'https://github.com/FoalTS/foal/edit/master/docs',
},
googleAnalytics: {
trackingID: 'UA-112613053-1',
anonymizeIP: true,
},
theme: {
customCss: require.resolve('./src/css/custom.scss'),
},
},
],
],
};