-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocusaurus.config.js
106 lines (104 loc) · 3.06 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
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').Config} */
module.exports = {
title: 'Docs',
tagline: 'Knowledge base for Skatehive Community',
url: 'https://docs.skatehive.app',
baseUrl: '/',
onBrokenLinks: 'ignore',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/skatehive.png',
organizationName: 'sktbrd',
projectName: 'skatehive-docs',
i18n: {
defaultLocale: 'en',
locales: ['en', 'pt-br', 'es', 'fr', 'lg'],
localeConfigs: {
en: { label: 'English' },
'pt-br': { label: 'Português (BR)' },
es: { label: 'Español' },
fr: { label: 'Français' },
lg: { label: 'Luganda' },
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
path: 'docs',
routeBasePath: 'docs',
sidebarPath: require.resolve('./sidebars.js'), // Use the sidebars.js file
editUrl: 'https://github.com/sktbrd/skatehive-docs/docs/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
themes: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{ hashed: true },
],
],
headTags: [
// {
// tagName: 'link',
// attributes: {
// rel: 'stylesheet',
// href: 'https://fonts.googleapis.com/css2?family=Montserrat+Alternates:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap',
// },
// },
{
tagName: 'meta',
attributes: {
name: 'description',
content: 'Skatehive Docs - Welcome to the Web3 Skateboarding World. Explore our documentation and ask anything to our AI in any language.',
},
},
{
tagName: 'meta',
attributes: {
name: 'keywords',
content: 'Skateboarding, Web3, Skatehive, Documentation, AI, Multilingual',
},
},
],
themeConfig: {
navbar: {
title: 'Docs',
style: 'dark',
logo: { alt: 'Skatehive Logo', src: 'img/skatehive.png' },
items: [
{ type: 'doc', docId: 'intro', position: 'left', label: 'Learn' },
{ to: 'https://skatehive.app', label: 'App', position: 'left' },
{
type: 'dropdown',
label: 'Community',
position: 'left',
items: [
{ label: 'Discord', href: 'https://discord.gg/skatehive' },
{ label: 'Twitter', href: 'https://twitter.com/skatehive' },
{ label: 'Farcaster', href: 'https://nounspace/s/skatehive' }
],
},
{ href: 'https://github.com/sktbrd/skatehive-docs/tree/main', label: 'GitHub', position: 'right' },
{ type: 'localeDropdown', position: 'right' },
],
},
colorMode: {
defaultMode: 'dark',
disableSwitch: false,
respectPrefersColorScheme: true,
},
prism: {
theme: darkCodeTheme,
darkTheme: darkCodeTheme,
},
customFields: {
mendableAnonKey: "524a2d83-688b-477a-ba99-05131d06138d",
},
},
};