-
Notifications
You must be signed in to change notification settings - Fork 165
/
Copy pathdocusaurus.config.js
104 lines (101 loc) · 3.21 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
var prysmVersion = "v6.0.0";
module.exports = {
title: 'Prysm',
tagline: 'Ethereum consensus implementation written entirely in Go.',
url: process.env.VERCEL_PROJECT_PRODUCTION_URL
? `https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`
: process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}`
: 'http://localhost:3000',
baseUrl: '/prysm/docs/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
favicon: 'images/Prysm.svg',
organizationName: 'Offchain Labs',
projectName: 'prysm-docs',
staticDirectories: ['static'],
customFields: {
image: 'images/Prysm.svg',
prysmVersion: prysmVersion,
},
trailingSlash: true,
scripts: ['https://buttons.github.io/buttons.js'],
themeConfig: {
navbar: {
title: "Prysm Documentation",
logo: {
alt: "Prysm logo",
src: 'images/logo2.png',
href: '/prysm/docs/',
},
items: [{
type: 'docsVersion',
position: 'left',
to: 'https://github.com/OffchainLabs/prysm/releases/tag/' + prysmVersion,
label: prysmVersion,
},
{
to: '/prysm/docs/install/install-with-script',
label: 'Quick Install',
position: 'right',
},
{
href: 'https://github.com/OffchainLabs/prysm',
label: 'GitHub',
position: 'right',
},
{
href: 'https://discord.gg/prysm',
label: 'Discord',
position: 'right',
},
],
},
footer: {
logo: {
alt: "Prysm Eth2 Docs",
href: '/prysm/docs/',
src: 'images/Prysm.svg',
},
copyright: `Copyright © ${new Date().getFullYear()} Offchain Labs, Inc., Validator Deposit Contract 0x00000000219ab540356cbb839cbe05303d7705fa`,
links: [],
},
prism: {
theme: require('prism-react-renderer/themes/dracula'),
},
image: 'images/prysm_together.png'
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
routeBasePath: '/',
showLastUpdateTime: false,
showLastUpdateAuthor: false,
breadcrumbs: false,
sidebarPath: require.resolve('./sidebars.json'),
editUrl: 'https://github.com/OffchainLabs/prysm-documentation/edit/master/',
},
blog: false,
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
sitemap: {
changefreq: 'weekly',
priority: 0.5,
},
},
],
],
plugins: [
[
'@docusaurus/plugin-google-analytics',
{
trackingID: 'UA-139640266-2',
anonymizeIP: true,
},
],
require.resolve("docusaurus-lunr-search"),
],
};