This repository has been archived by the owner on Oct 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
/
siteConfig.js
74 lines (67 loc) · 1.99 KB
/
siteConfig.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
/**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
const path = require('path');
const process = require('process');
const docsiteRelativeDocsPath = process.env['DOCS_PATH'] || 'demo-docs';
const customDocsPath = path.relative('..', docsiteRelativeDocsPath);
if (process.env['DOCS_VERSION'] === undefined) {
console.error('Environment variable DOCS_VERSION not set');
process.exit(1);
}
const version = process.env['DOCS_VERSION'];
const url = process.env['URL'] || 'https://docs.openzeppelin.org';
const siteConfig = {
title: 'OpenZeppelin',
tagline: 'A battle-tested library of reusable smart contracts for Ethereum and other blockchains.',
url,
baseUrl: `/`,
docsUrl: version,
organizationName: 'OpenZeppelin',
projectName: 'openzeppelin-solidity',
repoUrl: 'https://github.com/OpenZeppelin/openzeppelin-solidity',
disableHeaderTitle: true,
disableTitleTagline: true,
headerLinks: [
{
href: '/versions',
label: version,
},
{
href: '/',
label: 'Docs',
},
{
href: 'https://forum.zeppelin.solutions',
label: 'Forum',
},
{
href: 'https://github.com/OpenZeppelin/openzeppelin-solidity',
label: 'GitHub',
},
],
onPageNav: 'separate',
headerIcon: 'img/openzeppelin-logo.svg',
footerIcon: 'img/openzeppelin-symbol.svg',
favicon: 'img/favicon.png',
colors: {
primaryColor: '#5AA5FF',
secondaryColor: 'white',
},
copyright: 'Copyright © 2018 Smart Contract Solutions',
gaTrackingId: 'UA-85043059-1',
highlight: {
theme: 'atom-one-dark',
},
scripts: ['https://buttons.github.io/buttons.js'],
stylesheets: [
'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css',
'https://fonts.googleapis.com/css?family=Lato:100,200,300,400,500,700,400italic,700italic',
],
customDocsPath,
cleanUrl: true,
};
module.exports = siteConfig;