-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
814 lines (801 loc) · 24.6 KB
/
docusaurus.config.js
File metadata and controls
814 lines (801 loc) · 24.6 KB
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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
import fs from 'fs'
require('dotenv').config()
const { themes } = require('prism-react-renderer')
const { REF_ALLOW_LOGIN_PATH } = require('./src/lib/constants')
const {
fetchAndGenerateDynamicSidebarItems,
NETWORK_NAMES,
MM_REF_PATH,
MM_RPC_URL,
} = require('./src/plugins/plugin-json-rpc')
const codeTheme = themes.dracula
const productsDropdown = fs.readFileSync('./src/components/NavDropdown/Products.html', 'utf-8')
const baseUrl = process.env.DEST || '/'
const siteUrl = 'https://docs.metamask.io'
const remarkPlugins = [
require('remark-math'),
[require('@docusaurus/remark-plugin-npm2yarn'), { sync: true }]
]
const rehypePlugins = [[require('rehype-katex'), { strict: false }]]
/** @type {import('@docusaurus/types').Config} */
const fullUrl = new URL(baseUrl, siteUrl).toString()
const config = {
title: 'MetaMask developer documentation',
// tagline: '',
url: 'https://docs.metamask.io',
baseUrl, // overwritten in github action for staging / latest
onBrokenLinks: 'throw',
onBrokenAnchors: 'throw',
favicon: 'img/favicons/favicon-96x96.png',
headTags: [
{
tagName: 'link',
attributes: {
rel: 'icon',
type: 'image/png',
sizes: '96x96',
href: 'img/favicons/favicon-96x96.png',
},
},
{
tagName: 'meta',
attributes: {
name: 'algolia-site-verification',
content: '1AA18A875C92F2F7',
},
},
{
tagName: 'link',
attributes: {
rel: 'icon',
type: 'image/png',
sizes: '192x192',
href: 'img/favicons/web-app-manifest-192x192.png',
},
},
{
tagName: 'link',
attributes: {
rel: 'icon',
type: 'image/png',
sizes: '512x512',
href: 'img/favicons/web-app-manifest-512x512.png',
},
},
{
tagName: 'link',
attributes: {
rel: 'apple-touch-icon',
sizes: '180x180',
href: 'img/favicons/apple-touch-icon.png',
},
},
{
tagName: 'script',
attributes: {
type: 'application/ld+json',
},
innerHTML: `
{
"@context": "https://schema.org",
"@type": "Organization",
"url": "${fullUrl}",
"logo": "${new URL('img/favicons/favicon-96x96.png', fullUrl).toString()}"
}
`,
},
],
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'metamask', // Usually your GitHub org/user name.
projectName: 'metamask-docs', // Usually your repo name.
// Even if you don't use internationalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en' /*, "zh", "ko"*/],
},
customFields: {
LD_CLIENT_ID: process.env.LD_CLIENT_ID,
VERCEL_ENV: process.env.VERCEL_ENV,
DASHBOARD_URL: process.env.DASHBOARD_URL || 'http://localhost:3000',
SENTRY_KEY: process.env.SENTRY_KEY,
LINEA_ENS_URL: process.env.LINEA_ENS_URL,
SEGMENT_ANALYTICS_KEY: process.env.SEGMENT_ANALYTICS_KEY,
DISCOURSE_API_KEY: process.env.DISCOURSE_API_KEY,
DISCOURSE_API_USERNAME: process.env.DISCOURSE_API_USERNAME,
DISCOURSE_CATEGORY_ID: process.env.DISCOURSE_CATEGORY_ID,
},
trailingSlash: true,
scripts: [
{
src: baseUrl + 'js/fix-trailing-slash.js',
async: false,
defer: false,
},
{
src: baseUrl + 'js/code-focus.js',
async: false,
defer: true,
},
],
markdown: {
mermaid: true,
hooks: {
onBrokenMarkdownLinks: 'throw',
},
},
themes: ['@docusaurus/theme-mermaid'],
presets: [
[
'classic',
{
docs: {
id: 'docs',
path: 'docs',
routeBasePath: '/',
editUrl: 'https://github.com/MetaMask/metamask-docs/edit/main/',
sidebarPath: false,
breadcrumbs: false,
remarkPlugins,
rehypePlugins,
},
pages: {
path: 'src/pages',
routeBasePath: '/',
include: ['**/**.{js,jsx,ts,tsx,md,mdx}'],
exclude: [
'**/_*.{js,jsx,ts,tsx,md,mdx}',
'**/_*/**',
'**/*.test.{js,jsx,ts,tsx}',
'**/__tests__/**',
],
mdxPageComponent: '@theme/MDXPage',
remarkPlugins,
rehypePlugins,
},
theme: {
customCss: require.resolve('./src/scss/custom.scss'),
},
},
],
],
plugins: [
['./src/plugins/docusaurus-plugin-virtual-files', { rootDir: '.integrationBuilderCache' }],
'./src/plugins/docusaurus-plugin-tutorials',
'docusaurus-plugin-sass',
'./src/plugins/mm-scss-utils',
[
'@docusaurus/plugin-content-docs',
{
id: 'snaps',
path: 'snaps',
routeBasePath: 'snaps',
editUrl: 'https://github.com/MetaMask/metamask-docs/edit/main/',
sidebarPath: require.resolve('./snaps-sidebar.js'),
breadcrumbs: false,
remarkPlugins,
rehypePlugins,
admonitions: {
keywords: [
'info',
'success',
'danger',
'note',
'tip',
'warning',
'important',
'caution',
'security',
'flaskOnly',
],
},
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'gator',
path: 'smart-accounts-kit',
routeBasePath: 'smart-accounts-kit',
editUrl: 'https://github.com/MetaMask/metamask-docs/edit/main/',
sidebarPath: require.resolve('./gator-sidebar.js'),
breadcrumbs: false,
remarkPlugins,
rehypePlugins,
sidebarCollapsed: false,
includeCurrentVersion: true,
// Set to the latest release.
lastVersion: '0.3.0',
versions: {
// Defaults to the ./docs folder.
// Using "development" instead of "next" as path.
current: {
label: 'development',
path: 'development',
},
// The latest release.
'0.3.0': {
label: 'latest (0.3.0)',
},
},
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'services',
path: 'services',
routeBasePath: 'services',
editUrl: 'https://github.com/MetaMask/metamask-docs/edit/main/',
sidebarPath: require.resolve('./services-sidebar.js'),
breadcrumbs: false,
remarkPlugins,
rehypePlugins,
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'dashboard',
path: 'developer-tools/dashboard',
routeBasePath: 'developer-tools/dashboard',
editUrl: 'https://github.com/MetaMask/metamask-docs/edit/main/',
sidebarPath: require.resolve('./dashboard-sidebar.js'),
breadcrumbs: false,
remarkPlugins,
rehypePlugins,
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'wallet',
path: 'wallet',
routeBasePath: 'wallet',
editUrl: 'https://github.com/MetaMask/metamask-docs/edit/main/',
sidebarPath: require.resolve('./wallet-sidebar.js'),
breadcrumbs: false,
remarkPlugins,
rehypePlugins,
sidebarItemsGenerator: async function ({ defaultSidebarItemsGenerator, ...args }) {
const sidebarItems = await defaultSidebarItemsGenerator(args)
const dynamicItems = await fetchAndGenerateDynamicSidebarItems(
MM_RPC_URL,
MM_REF_PATH,
NETWORK_NAMES.metamask
)
if (args.item.dirName === 'reference/json-rpc-methods') {
return [...sidebarItems, ...dynamicItems]
}
return sidebarItems
},
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'sdk',
path: 'sdk',
routeBasePath: 'sdk',
editUrl: 'https://github.com/MetaMask/metamask-docs/edit/main/',
sidebarPath: require.resolve('./sdk-sidebar.js'),
breadcrumbs: false,
remarkPlugins,
rehypePlugins,
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'embedded-wallets',
path: 'embedded-wallets',
routeBasePath: 'embedded-wallets',
editUrl: 'https://github.com/MetaMask/metamask-docs/edit/main/',
sidebarPath: require.resolve('./ew-sidebar.js'),
breadcrumbs: false,
remarkPlugins,
rehypePlugins,
},
],
'./src/plugins/plugin-json-rpc.ts',
// Custom Segment plugin for controlled analytics
'./src/plugins/segment',
'./src/plugins/launchdarkly',
'./src/plugins/sentry',
'./src/plugins/osano.ts',
[
'@docusaurus/plugin-google-tag-manager',
{
containerId: 'GTM-5FGPLC2Q',
},
],
[
'docusaurus-plugin-llms',
{
// Set docsDir to site root to collect from all directories
docsDir: '.',
// Disable default files since we're generating section-specific files
generateLLMsTxt: false,
generateLLMsFullTxt: false,
// Ignore common non-doc directories
// Note: src/pages/** is not ignored so tutorials can be collected
// Each customLLMFiles entry filters by includePatterns, so only matching files are included
ignoreFiles: [
'node_modules/**',
'build/**',
'.docusaurus/**',
'static/**',
'src/components/**',
'src/theme/**',
'src/lib/**',
'src/config/**',
'src/hooks/**',
'src/utils/**',
'src/plugins/**',
'src/specs/**',
'src/client/**',
'src/scss/**',
'i18n/**',
'*.config.js',
'*.json',
'*.lock',
'README.md',
'CONTRIBUTING.md',
'gator_versioned_docs/**',
],
excludeImports: true,
removeDuplicateHeadings: true,
// Path transformation to fix URL construction
// Since docsDir is '.', we need to remove 'docs/' prefix and handle src/pages paths
pathTransformation: {
ignorePaths: ['docs', 'src/pages'],
},
// Generate separate files for each section
customLLMFiles: [
{
filename: 'llms-embedded-wallets.txt',
includePatterns: ['embedded-wallets/**/*.{md,mdx}'],
fullContent: false,
title: 'MetaMask Embedded Wallets documentation',
description: 'Documentation links for MetaMask Embedded Wallets',
},
{
filename: 'llms-embedded-wallets-full.txt',
includePatterns: ['embedded-wallets/**/*.{md,mdx}'],
fullContent: true,
title: 'MetaMask Embedded Wallets documentation',
description: 'Complete documentation for MetaMask Embedded Wallets',
},
{
filename: 'llms-sdk.txt',
includePatterns: ['sdk/**/*.{md,mdx}'],
fullContent: false,
title: 'MetaMask SDK documentation',
description: 'Documentation links for MetaMask SDK',
},
{
filename: 'llms-sdk-full.txt',
includePatterns: ['sdk/**/*.{md,mdx}'],
fullContent: true,
title: 'MetaMask SDK documentation',
description: 'Complete documentation for MetaMask SDK',
},
{
filename: 'llms-smart-accounts-kit.txt',
includePatterns: ['smart-accounts-kit/**/*.{md,mdx}'],
fullContent: false,
title: 'MetaMask Smart Accounts Kit documentation',
description: 'Documentation links for MetaMask Smart Accounts Kit',
},
{
filename: 'llms-smart-accounts-kit-full.txt',
includePatterns: ['smart-accounts-kit/**/*.{md,mdx}'],
fullContent: true,
title: 'MetaMask Smart Accounts Kit documentation',
description: 'Complete documentation for MetaMask Smart Accounts Kit',
},
{
filename: 'llms-snaps.txt',
includePatterns: ['snaps/**/*.{md,mdx}'],
fullContent: false,
title: 'Snaps documentation',
description: 'Documentation links for Snaps',
},
{
filename: 'llms-snaps-full.txt',
includePatterns: ['snaps/**/*.{md,mdx}'],
fullContent: true,
title: 'Snaps documentation',
description: 'Complete documentation for Snaps',
},
{
filename: 'llms-wallet.txt',
includePatterns: ['wallet/**/*.{md,mdx}'],
fullContent: false,
title: 'Wallet API documentation',
description: 'Documentation links for Wallet API',
},
{
filename: 'llms-wallet-full.txt',
includePatterns: ['wallet/**/*.{md,mdx}'],
fullContent: true,
title: 'Wallet API documentation',
description: 'Complete documentation for Wallet API',
},
{
filename: 'llms-tutorials.txt',
includePatterns: ['src/pages/tutorials/**/*.{md,mdx}'],
fullContent: false,
title: 'Tutorials',
description: 'Documentation links for MetaMask tutorials',
},
{
filename: 'llms-tutorials-full.txt',
includePatterns: ['src/pages/tutorials/**/*.{md,mdx}'],
fullContent: true,
title: 'Tutorials',
description: 'Complete documentation for MetaMask tutorials',
},
{
filename: 'llms-dashboard.txt',
includePatterns: ['developer-tools/dashboard/**/*.{md,mdx}'],
fullContent: false,
title: 'Developer dashboard documentation',
description: 'Documentation links for MetaMask Developer dashboard',
},
{
filename: 'llms-dashboard-full.txt',
includePatterns: ['developer-tools/dashboard/**/*.{md,mdx}'],
fullContent: true,
title: 'Developer dashboard documentation',
description: 'Complete documentation for MetaMask Developer dashboard',
},
{
filename: 'llms-services.txt',
includePatterns: ['services/**/*.md'],
fullContent: false,
title: 'Services documentation',
description: 'Documentation links for MetaMask services',
},
{
filename: 'llms-services-full.txt',
includePatterns: ['services/**/*.md'],
fullContent: true,
title: 'Services documentation',
description: 'Complete documentation for MetaMask services',
},
],
},
],
],
clientModules: [require.resolve('./src/client/scroll-fix.js')],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
metadata: [
{
name: 'keywords',
content:
'MetaMask, Embedded Wallets, Quickstart, Web3 Development, SDK, Wallet Integration, API, Dapp Development, Blockchain Development, Ethereum Development, Smart Contract, Account Abstraction, Snaps, Crypto Wallet, DeFi, NFT, Infura, Services, Dashboard',
},
// Twitter-specific meta tags
{
name: 'twitter:card',
content: 'summary_large_image',
},
{
name: 'twitter:image',
content: 'https://docs.metamask.io/img/metamaskog.jpg',
},
{
name: 'twitter:image:alt',
content: 'MetaMask Developer Documentation',
},
{
name: 'twitter:site',
content: '@MetaMask',
},
{
name: 'twitter:creator',
content: '@MetaMask',
},
// Open Graph meta tags for better social sharing
{
property: 'og:image',
content: 'https://docs.metamask.io/img/metamaskog.jpg',
},
{
property: 'og:image:width',
content: '1200',
},
{
property: 'og:image:height',
content: '630',
},
{
property: 'og:image:alt',
content: 'MetaMask Developer Documentation',
},
{
property: 'og:type',
content: 'website',
},
],
image: '/img/metamaskog.jpg',
colorMode: {
respectPrefersColorScheme: true,
},
navbar: {
logo: {
alt: 'MetaMask logo',
src: 'img/metamask-logo.svg',
srcDark: 'img/metamask-logo-dark.svg',
width: 150,
},
hideOnScroll: false,
items: [
{
type: 'dropdown',
label: 'Products',
items: [
{
type: 'html',
value: productsDropdown,
},
],
},
{
label: 'Quickstart',
to: '/quickstart',
position: 'left',
},
{
label: 'Tutorials',
to: '/tutorials',
position: 'left',
},
{
to: 'developer-tools/faucet/',
label: 'Faucet',
position: 'right',
},
{
to: 'https://builder.metamask.io/',
label: 'Help ↗',
position: 'right',
},
// {
// type: 'custom-navbarWallet',
// position: 'right',
// includeUrl: REF_ALLOW_LOGIN_PATH,
// },
/* Language drop down
{
type: "localeDropdown",
position: "right",
},
*/
],
},
docs: {
sidebar: {
autoCollapseCategories: false,
},
},
footer: {
logo: {
alt: 'MetaMask logo',
src: 'img/metamask-logo.svg',
srcDark: 'img/metamask-logo-dark.svg',
href: 'https://metamask.io/',
width: 250,
},
links: [
{
title: 'Documentation',
items: [
{
label: 'SDK',
to: '/sdk',
},
{
label: 'Wallet API',
to: '/wallet',
},
{
label: 'Smart Accounts Kit',
to: '/smart-accounts-kit',
},
{
label: 'Embedded Wallets',
to: '/embedded-wallets',
},
{
label: 'Snaps',
to: '/snaps',
},
{
label: 'Services',
to: '/services',
},
{
label: 'Developer dashboard',
to: '/developer-tools/dashboard',
},
],
},
{
title: 'GitHub',
items: [
{
label: 'Documentation GitHub',
href: 'https://github.com/MetaMask/metamask-docs',
},
{
label: 'MetaMask extension GitHub',
href: 'https://github.com/MetaMask/metamask-extension/',
},
{
label: 'MetaMask SDK GitHub',
href: 'https://github.com/MetaMask/metamask-sdk/',
},
{
label: 'Smart Accounts Kit GitHub',
href: 'https://github.com/MetaMask/smart-accounts-kit',
},
{
label: 'MetaMask mobile GitHub',
href: 'https://github.com/MetaMask/metamask-mobile',
},
{
label: 'Snaps GitHub',
href: 'https://github.com/MetaMask/snaps-monorepo',
},
],
},
{
title: 'Community',
items: [
{
label: 'Faucet',
to: '/developer-tools/faucet',
},
{
label: 'MetaMask Developer',
href: 'https://developer.metamask.io/login',
},
{
label: 'Consensys Discord',
href: 'https://discord.gg/consensys',
},
{
label: 'Contribute to MetaMask',
href: 'https://github.com/MetaMask/metamask-extension/blob/develop/docs/README.md',
},
{
label: 'Contribute to the docs',
href: 'https://github.com/MetaMask/metamask-docs/blob/main/CONTRIBUTING.md',
},
{
label: 'MetaMask user support',
href: 'https://support.metamask.io/',
},
],
},
{
title: 'Legal',
items: [
{
label: 'Privacy Policy',
href: 'https://consensys.net/privacy-policy/',
},
{
label: 'Terms of Use',
href: 'https://consensys.net/terms-of-use/',
},
{
label: 'Contributor License Agreement',
href: 'https://metamask.io/cla/',
},
{
label: 'Accessibility',
href: 'https://consensys.io/accessibility',
},
{
html: "<button id='manage-cookie-btn'>Manage cookies</button>",
},
],
},
],
copyright: `© ${new Date().getFullYear()} MetaMask • A Consensys Formation`,
},
prism: {
theme: codeTheme,
additionalLanguages: ['csharp', 'gradle', 'bash', 'json', 'java', 'kotlin', 'swift', 'groovy', 'dart'],
magicComments: [
{
className: 'theme-code-block-highlighted-line',
line: 'highlight-next-line',
block: { start: 'highlight-start', end: 'highlight-end' },
},
{
className: 'code-unfocus',
line: 'unfocus-next-line',
block: { start: 'unfocus-start', end: 'unfocus-end' },
},
{
className: 'code-focus',
line: 'focus-next-line',
block: { start: 'focus-start', end: 'focus-end' },
},
{
className: 'git-diff-remove',
line: 'remove-next-line',
block: { start: 'remove-start', end: 'remove-end' },
},
{
className: 'git-diff-add',
line: 'add-next-line',
block: { start: 'add-start', end: 'add-end' },
},
],
},
algolia: {
// The application ID provided by Algolia
appId: 'W4ZOZ72ZFG',
apiKey: 'b4e925aa9bf05e5bef2e40b3ee6ee431',
indexName: 'mmdocs',
contextualSearch: false,
translations: {
button: {
buttonText: 'Search or Ask AI',
buttonAriaLabel: 'Search or Ask AI',
},
},
askAi: {
assistantId: 'REak1eiP5wfp',
},
// Optional: see doc section below
// Optional: Specify domains where the navigation should occur through window.location instead on history.push. Useful when our Algolia config crawls multiple documentation sites and we want to navigate with window.location.href to them.
// externalUrlRegex: "external\\.com|domain\\.com",
// Optional: Replace parts of the item URLs from Algolia. Useful when using the same search index for multiple deployments using a different baseUrl. You can use regexp or string in the `from` param. For example: localhost:3000 vs myCompany.com/docs
// replaceSearchResultPathname: {
// from: '/',
// to: baseUrl,
// },
// Optional: Algolia search parameters
// searchParameters: {},
// Optional: path for search page that enabled by default (`false` to disable it)
// searchPagePath: 'search',
//... other Algolia params
},
mermaid: {
options: {
fontFamily: 'arial, verdana, sans-serif;',
wrap: true,
securityLevel: 'loose',
sequence: {
diagramMarginX: 25,
diagramMarginY: 25,
},
flowchart: {
diagramPadding: 5,
nodeSpacing: 75,
},
},
},
}),
stylesheets: [
{
href: "https://cdn.jsdelivr.net/npm/katex@0.16.25/dist/katex.min.css",
type: "text/css",
integrity: "sha384-WcoG4HRXMzYzfCgiyfrySxx90XSl2rxY5mnVY5TwtWE6KLrArNKn0T/mOgNL0Mmi",
crossorigin: "anonymous",
},
],
}
module.exports = config