-
Notifications
You must be signed in to change notification settings - Fork 465
/
docusaurus.config.js
executable file
·115 lines (114 loc) · 3.32 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
module.exports = {
title: "Matic Network | Documentation",
tagline: "Welcome to Matic developer documentation",
url: "https://docs.matic.network/",
baseUrl: "/",
favicon: "img/favicon.png",
organizationName: "Matic Network",
projectName: "matic-docs",
customFields: {
description: "Build your next blockchain app on Matic.",
},
themeConfig: {
announcementBar: {
id: "support_us",
content:
'⭐️ Validators, we are moving to <a target="_blank" rel="noopener noreferrer" href="/docs/validate/counter_stake">Counter Stake Stage 2</a>! ⭐️',
backgroundColor: "#2b6def", // Defaults to `#fff`
textColor: "#fff", // Defaults to `#000`
},
// googleAnalytics: {
// trackingID: "UA-141789564-1",
// anonymizeIP: true,
// },
image: "https://matic.network/banners/matic-network-16x9.png",
prism: {
theme: require("prism-react-renderer/themes/github"),
darkTheme: require("prism-react-renderer/themes/dracula"),
defaultLanguage: "javascript",
},
algolia: {
apiKey: "c3ad4eabc5af314ea3ed331efbe0a5c4",
indexName: "matic_developer",
algoliaOptions: {},
},
navbar: {
hideOnScroll: true,
title: "Developer",
logo: {
alt: "Matic logo",
src: "/img/logo.svg",
srcDark: "/img/logo-white.svg",
// href: 'https://docs.matic.network/', // default to siteConfig.baseUrl
target: "_self", // by default, this value is calculated based on the `href` attribute (the external link will open in a new tab, all others in the current one)
},
links: [
{
to: "docs/home/new-to-matic",
label: "Basics",
position: "left",
activeBasePath: "docs",
},
{
to: "docs/develop/getting-started",
label: "Develop",
position: "left",
activeBasePath: "docs",
},
{
to: "docs/validate/orientation",
label: "Validate",
position: "left",
activeBasePath: "docs",
},
{
to: "docs/integrate/quickstart",
label: "Integrate",
position: "left",
activeBasePath: "docs",
},
{
to: "docs/contribute/orientation",
label: "Contribute",
position: "left",
activeBasePath: "docs",
},
{
label: "Support",
href: "https://forum.matic.network",
position: "right",
},
],
},
},
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
sidebarPath: require.resolve("./sidebars.js"),
editUrl: "https://github.com/maticnetwork/matic-docs/tree/master/",
path: "docs",
showLastUpdateAuthor: false,
showLastUpdateTime: true,
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
// "@docuaurus/plugin-content-pages",
// {
// path: "src/pages",
// routeBasePath: "",
// include: ["**/*.{js,jsx}"],
// },
// "@docusaurus/plugin-google-analytics",
// "@docusaurus/plugin-sitemap",
// {
// cacheTime: 600 * 1000, // 600 sec - cache purge period
// changefreq: "weekly",
// priority: 0.5,
// },
],
],
};