-
Notifications
You must be signed in to change notification settings - Fork 1
/
docusaurus.config.js
64 lines (63 loc) · 1.84 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
const darkCodeTheme = require('prism-react-renderer/themes/palenight');
const lightCodeTheme = require('prism-react-renderer/themes/github');
const objectAssignDeep = require('object-assign-deep');
const universalConfig = require('@libra-opensource/diem-docusaurus-components/src/universal-config');
module.exports = objectAssignDeep(universalConfig, {
title: 'Diem Improvement Proposals',
tagline: 'Diem Improvement Proposals',
onBrokenLinks: 'ignore',
url: 'https://dip.diem.com',
baseUrl: '/',
favicon: 'img/favicon.ico',
organizationName: 'diem',
projectName: 'dip',
themeConfig: {
algolia: {
apiKey: 'cf22f07a9b6b22b6b595b439878876f8',
indexName: 'diem_improvement_proposals',
},
prism: {
darkTheme: darkCodeTheme,
theme: lightCodeTheme,
},
sidebarCollapsible: false,
siteID: 'dips',
},
plugins: [
require.resolve('./plugins/alias/src'),
require.resolve('./plugins/dip-metadata/src'),
require.resolve('./plugins/react-axe-ada-monitoring'),
require.resolve('./plugins/seo-tags'),
require.resolve(
'@libra-opensource/diem-docusaurus-components/src/plugin-segment',
),
],
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl:
'https://github.com/diem/dip/edit/master/',
path: 'all-docs__GENERATED',
routeBasePath: '/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
customFields: {
navbar: {
title: 'Governance',
},
segment: {
productionKey: 'g7EJ7IBwqVHMlcE7LsibZgNyMVyZHRXU',
stagingKey: '4o1O3LLd7EvFJ2Cp3CbFfXk3yy8LeT5t',
},
trackingCookieConsent: 'diem-dips-cookies-allowed',
trackingCookieExpiration: 90, // in days
},
});