-
Notifications
You must be signed in to change notification settings - Fork 14
/
docusaurus.config.ts
140 lines (133 loc) · 3.54 KB
/
docusaurus.config.ts
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
import { themes as prismThemes } from "prism-react-renderer";
import remarkMath from "remark-math";
import rehypeKatex from "rehype-katex";
import { type Config } from "@docusaurus/types";
import type * as Preset from "@docusaurus/preset-classic";
const config: Config = {
title: "Vara Network Documentation Portal",
tagline: "All documentation related to Vara Network",
url: "https://wiki.vara.network/",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.svg",
organizationName: "Gear Foundation",
projectName: "vara-wiki",
markdown: {
mermaid: true,
},
themes: ['@docusaurus/theme-mermaid'],
i18n: {
defaultLocale: "en",
locales: ["en"],
},
plugins: [
"docusaurus-plugin-sass",
async function tailwindPlugin(context, options) {
return {
name: "docusaurus-tailwindcss",
configurePostCss(postcssOptions) {
postcssOptions.plugins.push(require("tailwindcss"));
postcssOptions.plugins.push(require("autoprefixer"));
return postcssOptions;
},
};
},
],
presets: [
[
"classic",
{
docs: {
sidebarPath: "./sidebars.js",
editUrl: "https://github.com/gear-foundation/vara-wiki/edit/master",
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
},
blog: false,
theme: {
customCss: "./src/css/custom.scss",
},
googleTagManager: {
containerId: "GTM-NH2N6VX",
},
} satisfies Preset.Options,
],
],
themeConfig: {
colorMode: {
defaultMode: "dark",
},
image: "img/ogimage.jpg",
navbar: {
logo: {
alt: "Vara Network Documentation Portal",
src: "img/logo-vara.svg",
srcDark: "img/logo-vara.svg",
},
items: [
{
type: "doc",
docId: "welcome",
position: "left",
label: "Docs",
},
{
href: "https://www.vara.network/",
label: "Vara.network",
position: "right",
},
{
href: "https://www.gear-tech.io/",
label: "Gear-tech.io",
position: "right",
},
{
href: "https://github.com/gear-foundation/vara-wiki",
label: "Contribute",
position: "right",
},
],
},
announcementBar: {
id: "varathon",
content:
'Ready to build on the edge of Web3? Join Vara online hackathon - <a target="_blank" href="https://varathon.io/?utm_source=wiki&utm_medium=banner&utm_campaign=vara"> Gear Up</a>',
isCloseable: false,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
docs: {
sidebar: {
autoCollapseCategories: true,
},
},
} satisfies Preset.ThemeConfig,
stylesheets: [
{
href: "https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css",
type: "text/css",
integrity:
"sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM",
crossorigin: "anonymous",
},
"https://fonts.googleapis.com/css2?family=Anuphan:[email protected]&display=swap",
],
scripts: [
{
src: "https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.11/iframeResizer.contentWindow.min.js",
defer: true,
},
{
src: "/js/with-iframe-resizer.js",
defer: true,
},
// {
// src: 'https://cdn.jsdelivr.net/npm/@iframe-resizer/child',
// defer: true,
// },
],
};
export default config;