-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathdocusaurus.config.js
163 lines (155 loc) · 4.36 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
162
163
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Telos Docs',
tagline: 'Documentation and Tutorials for Telos',
url: 'https://docs.telos.net',
baseUrl: '/',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/fav-icon.png',
trailingSlash: true, // generates links differently an breaks almost all internal links. But when resolved will help with SEO
organizationName: 'telosnetwork',
projectName:'telos-docs',
plugins: ['docusaurus-plugin-sass'],
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
presets: [
[
'@docusaurus/preset-classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/telosnetwork/telos-docs/tree/master/',
},
blog: false,
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
sitemap: {
changefreq: 'weekly',
priority: 0.5,
ignorePatterns: ['/tags/**','/index-off','/markdown-page','/my-react-page'],
filename: 'sitemap.xml',
},
}),
],
],
scripts: [
{
src: 'https://cdn.usefathom.com/script.js',
'data-site': "EKQJAMBV",
defer: true,
},
{
src: '/themeChanger.js',
async: true,
},
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
metadata: [
{property: 'og:image', content: 'https://docs.telos.net/img/docs-social-share.png'},
{property: 'og:locale', content: 'en_US'},
{property: 'og:type', content: 'website'},
{property: 'twitter:image', content: 'https://docs.telos.net/img/docs-social-share.png'},
{name: 'google-site-verification', content: 'HgXA9uRlyondYS68-b8ZBHo2KMpEv1h4LcUOSnJB1PE'},
],
navbar: {
title: '',
logo: {
alt: 'Telos Logo',
src: 'img/logos/telos-logo-light.png',
srcDark: 'img/logos/telos-logo-dark.png',
},
items: [
{
type: 'doc',
label: 'Developer Docs',
docId: 'overview/what-is-telos/introduction',
position: 'left',
},
{
type: 'doc',
label: 'User Guides',
docId: 'users/getting-started/README',
position: 'left',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Community',
items: [
{
label: 'Discord',
href: 'https://discord.gg/telos',
},
{
label: 'Twitter',
href: 'https://twitter.com/HelloTelos',
},
{
label: 'Developer Twitter',
href: 'https://twitter.com/TelosDevelopers',
},
{
label: 'Telegram',
href: 'https://t.me/HelloTelos',
},
],
},
{
title: 'Block Explorers',
items: [
{
label: 'Telos Zero',
href: 'https://explorer.telos.net',
},
{
label: 'EVM - Teloscan',
href: 'https://teloscan.io',
},
]
},
{
title: 'More',
items: [
{
label: 'News',
href: 'https://www.telos.net/news',
},
{
label: 'GitHub',
href: 'https://github.com/telosnetwork',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Telos Foundation, Inc.`,
},
colorMode: {
defaultMode: 'dark',
disableSwitch: false,
respectPrefersColorScheme: false,
},
algolia: {
appId: 'M49QB996FG',
apiKey: '781dec423a50110abbe2e262dec95659',
indexName: 'telos',
contextualSearch: true,
},
}),
};
module.exports = config;