forked from 0xPolygonID/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
executable file
·220 lines (216 loc) · 5.79 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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
const math = require("remark-math");
const katex = require("rehype-katex");
require("dotenv").config();
module.exports = {
title: "Privado ID Documentation",
tagline: "The official developer documentation hub for Privado ID.",
url: "https://devs.polygonid.com",
baseUrl: "/",
favicon: "/img/privado_favicon.png",
organizationName: "0xPolygonID",
projectName: "docs",
customFields: {
description: "Build your next blockchain dApp using Privado ID.",
},
i18n: {
defaultLocale: "en",
locales: ["en"],
path: "i18n",
localeConfigs: {
en: {
label: "English",
direction: "ltr",
htmlLang: "en-US",
calendar: "gregory",
path: "en",
},
},
},
themeConfig: {
announcementBar: {
id: "learn_more",
content:
'The latest Release 8 is live.<a class="announcement-link" rel="noopener noreferrer" href="/docs/release-notes/r8">Release Notes</a>',
backgroundColor: "#20232a",
textColor: "#131313",
isCloseable: false,
},
metadata: [
{
name: "description",
content: "Welcome to Privado ID Documentation, the official documentation for Privado ID.",
},
],
colorMode: {
defaultMode: "dark",
disableSwitch: true,
respectPrefersColorScheme: false,
},
footer: {
style: "dark",
links: [],
},
// image: "img/thumbnail.jpg",
prism: {
theme: require("prism-react-renderer/themes/github"),
darkTheme: require("prism-react-renderer/themes/dracula"),
defaultLanguage: "javascript",
additionalLanguages: ["solidity"],
},
algolia: {
// need to update this
indexName: "devs-polygonid",
appId: "VHJ21ILMOQ",
apiKey: process.env.ALGOLIA_API_KEY,
contextualSearch: true,
algoliaOptions: {
attributesToSnippet: ["content:20"],
},
},
navbar: {
hideOnScroll: true,
logo: {
alt: "Privado logo",
src: "img/privado_logo.svg",
srcDark: "img/privado_logo.svg",
href: "/",
target: "_self",
},
items: [
{
position: "left",
label: "Build",
items: [
{
href: "/docs/issuer/issuer-overview/",
label: "Issuer",
},
{
href: "/docs/verifier/verifier-overview/",
label: "Verifier",
},
{
href: "/docs/wallet/wallet-overview/",
label: "Wallet",
},
{
href: "/docs/js-sdk/js-sdk-overview/",
label: "JS-SDK",
},
{
href: "/docs/smart-contracts/",
label: "Smart Contracts",
},
],
},
{
position: "left",
label: "Tools",
items: [
{
href: "https://schema-builder.polygonid.me/",
label: "Schema Explorer",
},
{
href: "https://schema-builder.polygonid.me/builder",
label: "Schema Builder",
},
{
href: "https://schema-builder.polygonid.me/query-builder",
label: "Query Builder",
},
{
href: "https://jwz.polygonid.me",
label: "JWZ Validator",
},
],
},
{
position: "left",
label: "Learn",
items: [
{
href: "/docs/faqs/",
label: "FAQs",
},
{
href: "https://www.youtube.com/playlist?list=PLRD3rkREa7mLLJ6jfUTygXV1iK_AvsDdw",
label: "Fundamentals",
},
{
href: "https://www.youtube.com/playlist?list=PLRD3rkREa7mLjDB1qL4KkCtob6kPJIvhS",
label: "Architecture",
},
{
href: "https://www.youtube.com/playlist?list=PLRD3rkREa7mIgx_RHZdin74vEb2A1Evek",
label: "Inside Privado ID",
},
],
},
{
position: "left",
label: "Releases",
href: "/docs/releases",
},
{
position: "left",
label: "Support",
href: "https://t.me/PrivadoID_Official/2",
},
{
position: "left",
label: "Protocol",
items: [
{
href: "https://docs.iden3.io/",
label: "Iden3 General Docs",
},
{
href: "https://iden3-communication.io/",
label: "Iden3comm",
},
],
},
{
href: "https://github.com/0xPolygonID",
position: "right",
className: "header-github-link",
"aria-label": "GitHub repository",
},
{
href: "https://x.com/PrivadoID",
position: "right",
className: "header-twitter-link",
},
],
},
},
stylesheets: [
{
href: "https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css",
type: "text/css",
integrity: "sha384-Um5gpz1odJg5Z4HAmzPtgZKdTBHZdw8S29IecapCSB31ligYPhHQZMIlWLYQGVoc",
crossorigin: "anonymous",
},
],
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
routeBasePath: "/docs",
sidebarPath: require.resolve("./sidebars.js"),
editUrl: "https://github.com/0xPolygonID/docs/blob/main",
path: "docs",
showLastUpdateAuthor: true,
showLastUpdateTime: true,
remarkPlugins: [math],
rehypePlugins: [[katex, { strict: false, throwOnError: true, globalGroup: true }]],
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
};