-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.js
116 lines (107 loc) · 3.17 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
const path = require('path');
module.exports = {
title: 'gr0wing Developer Hub',
tagline: 'The Home of gr0wing Developers',
url: 'https://docusaurus-2.netlify.app',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'Gr0wing-Network', // Usually your GitHub org/user name.
projectName: 'docs.gr0wing.io', // Usually your repo name.
customFields: {},
themeConfig: {
// ...
googleTagManager: {
trackingID: 'UA-64552723-17',
},
algolia: {
// The application ID provided by Algolia
appId: '2F2YINGKQ2',
// Public API key: it is safe to commit it
apiKey: 'ffcca0ebd2a62726d33e0c4f9ed86584',
indexName: 'docs.gr0wing.io',
// Optional: see doc section below
contextualSearch: true,
// Optional: Specify domains where the navigation should occur through window.location instead on history.push. Useful when our Algolia config crawls multiple documentation sites and we want to navigate with window.location.href to them.
// externalUrlRegex: 'external\\.com|domain\\.com',
// Optional: Algolia search parameters
searchParameters: {},
// Optional: path for search page that enabled by default (`false` to disable it)
searchPagePath: 'search',
//... other Algolia params
},
navbar: {
style: 'dark',
title: null,
logo: {
alt: 'Gr0wing logo',
src: 'img/stone-egg-gr0wing.png',
},
hideOnScroll: true,
items: [
{
to: 'intro',
activeBasePath: 'docs',
label: 'Get started',
position: 'right',
},
],
},
footer: {
style: 'dark',
logo: {
alt: 'Gr0wing logo',
src: 'img/stone-egg-gr0wing.png',
href: 'https://gr0wing.io/',
},
copyright: `Copyright: © ${new Date().getFullYear()} The Gr0wing Network. All rights reserved.`,
},
colorMode: {
// Hides the switch in the navbar
// Useful if you want to support a single color mode
disableSwitch: false,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
routeBasePath: '/',
path: 'docs',
sidebarPath: require.resolve('./sidebars.js'),
showLastUpdateTime: true,
editUrl:
'https://github.com/Gr0wing-Network/docs.gr0wing.io/edit/main/',
},
blog: {
showReadingTime: true,
},
theme: {
customCss: require.resolve('./src/css/custom.scss'),
},
pages: {
path: 'src/pages',
routeBasePath: '/',
include: ['**/*.{js,jsx,ts,tsx,md,mdx}'],
exclude: [
'**/_*.{js,jsx,ts,tsx,md,mdx}',
'**/_*/**',
'**/*.test.{js,jsx,ts,tsx}',
'**/__tests__/**',
],
mdxPageComponent: '@theme/MDXPage',
remarkPlugins: [],
rehypePlugins: [],
beforeDefaultRemarkPlugins: [],
beforeDefaultRehypePlugins: [],
},
},
],
],
plugins: [
'docusaurus-plugin-sass',
path.resolve(__dirname, 'plugins', 'gtm'),
],
};