forked from aptos-labs/aptos-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
152 lines (146 loc) · 4.94 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
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require("prism-react-renderer/themes/github");
const darkCodeTheme = require("prism-react-renderer/themes/dracula");
const codeInjector = require("./src/remark/code-injector");
/** @type {import("@docusaurus/types").Config} */
const config = {
title: "Aptos Labs",
tagline: "Developer Documentation",
url: "https://docs.aptoslabs.com",
baseUrl: "/",
onBrokenLinks: "warn",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",
organizationName: "aptos-labs", // Usually your GitHub org/user name.
projectName: "developer-docs", // Usually your repo name.
presets: [
[
"@docusaurus/preset-classic",
/** @type {import("@docusaurus/preset-classic").Options} */
({
docs: {
routeBasePath: "/",
sidebarPath: require.resolve("./sidebars.js"),
editUrl: "https://github.com/aptos-labs/aptos-core/tree/main/developer-docs-site/",
remarkPlugins: [codeInjector],
},
blog: false,
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
gtag: {
trackingID: "G-HVB7QFB9PQ",
},
}),
],
],
themeConfig:
/** @type {import("@docusaurus/preset-classic").ThemeConfig} */
({
navbar: {
title: "| Developer Network",
logo: {
alt: "Aptos Labs Logo",
src: "img/aptos_word.svg",
srcDark: "/img/aptos_word.svg",
},
items: [
{
href: "https://github.com/aptos-labs/aptos-core/",
label: "GitHub",
position: "right",
},
],
},
footer: {
style: "dark",
links: [
{
title: null,
items: [
{
html: `
<a class="social-link" href="https://aptoslabs.com" target="_blank" rel="noopener noreferrer" title="Git">
<img class="logo" src="/img/aptos_word.svg" alt="Git Icon" />
</a>
`
},
],
},
{
title: null,
items: [
{
html: `
<p class="emails">
If you have any questions, please contact us at </br>
<a href="mailto:[email protected]" target="_blank" rel="noreferrer noopener">
</a> or
<a href="mailto:[email protected]" target="_blank" rel="noreferrer noopener">
</a>
</p>
`,
},
],
},
{
title: null,
items: [
{
html: `
<p class="right">
<nav class="social-links">
<a class="social-link" href="https://github.com/aptoslabs" target="_blank" rel="noopener noreferrer" title="Git">
<img class="icon" src="/img/socials/git.svg" alt="Git Icon" />
</a>
<a class="social-link" href="https://discord.gg/aptoslabs" target="_blank" rel="noopener noreferrer" title="Discord">
<img class="icon" src="/img/socials/discord.svg" alt="Discord Icon" />
</a>
<a class="social-link" href="https://twitter.com/aptoslabs/" target="_blank" rel="noopener noreferrer" title="Twitter">
<img class="icon" src="/img/socials/twitter.svg" alt="Twitter Icon" />
</a>
<a class="social-link" href="https://aptoslabs.medium.com/" target="_blank" rel="noopener noreferrer" title="Medium">
<img class="icon" src="/img/socials/medium.svg" alt="Medium Icon" />
</a>
<a class="social-link" href="https://www.linkedin.com/company/aptoslabs/" target="_blank" rel="noopener noreferrer" title="LinkedIn">
<img class="icon" src="/img/socials/linkedin.svg" alt="LinkedIn Icon" />
</a>
</nav>
</p>
`,
},
],
},
],
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ["rust"],
},
algolia: {
appId: 'HM7UY0NMLG',
apiKey: 'ab185b9077070c3e02dce2e381a3f81b',
indexName: 'aptos',
contextualSearch: true,
debug: false,
},
}),
plugins: [
[
'@docusaurus/plugin-client-redirects',
{
redirects: [
{
to: '/tutorials/full-node/run-a-fullnode',
from: '/tutorials/run-a-fullnode',
},
],
},
],
],
};
module.exports = config;