This repository was archived by the owner on May 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathsiteConfig.js
More file actions
174 lines (155 loc) · 4.74 KB
/
siteConfig.js
File metadata and controls
174 lines (155 loc) · 4.74 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
const React = require('react')
const { BaseStyles, PublicUrl } = require('@aragon/ui')
const ServerStyleSheet = require('styled-components').ServerStyleSheet
const renderToStaticMarkup = require('react-dom/server').renderToStaticMarkup
const hljsDefineSolidity = require('highlightjs-solidity')
/* List of projects/orgs using your project for the users page */
const users = [
{
caption: 'district0x',
image: '/img/users/district0x.svg',
infoLink: 'https://district0x.io',
pinned: true,
},
{
caption: 'Decentraland',
image: '/img/users/decentraland.png',
infoLink: 'https://decentraland.org',
pinned: true,
},
{
caption: 'Althea',
image: '/img/users/althea.jpg',
infoLink: 'https://altheamesh.com',
pinned: true,
},
{
caption: 'DAppNode',
image: '/img/users/dappnode.png',
infoLink: 'https://dappnode.io',
pinned: true,
},
{
caption: 'Pando',
image: '/img/users/pando.png',
infoLink: 'https://github.com/ryhope/pando',
pinned: true,
},
{
caption: 'Espresso',
image: '/img/users/espresso.png',
infoLink: 'https://github.com/espresso-org',
pinned: true,
},
{
caption: 'Giveth',
image: '/img/users/giveth.png',
infoLink: 'https://giveth.io',
pinned: true,
},
]
const siteConfig = {
title: 'Aragon Developer Portal',
tagline: 'What you need to get started building with Aragon',
url: 'https://hack.aragon.org',
baseUrl: '/',
cname: 'hack.aragon.org',
// For github.io type URLs, you would set the url and baseUrl like:
// url: 'https://facebook.github.io',
// baseUrl: '/test-site/',
projectName: 'hack-docs',
organizationName: 'aragon',
headerLinks: [
{doc: 'getting-started', label: 'Get started'},
{doc: 'tutorial', label: 'Tutorial'},
{doc: 'aragonos-intro', label: 'aragonOS'},
{doc: 'aragonjs-intro', label: 'aragonAPI'},
{doc: 'aragonui-intro', label: 'aragonUI'},
{page: 'help', label: 'Help'}
],
cleanUrl: true,
editUrl: 'https://github.com/aragon/hack/tree/master/docs/',
twitterUsername: 'AragonProject',
users,
/* path to images for header/footer */
headerIcon: 'img/isotype.svg',
footerIcon: 'img/isotype.svg',
favicon: 'img/favicon.png',
/* colors for website */
// #00c8e4
colors: {
primaryColor: '#3b3b3b',
secondaryColor: '#00b4e6',
},
/* custom fonts for website */
fonts: {
myFont: [
"Overpass",
],
myOtherFont: [
"-apple-system",
"system-ui"
]
},
algolia: {
apiKey: '9dff0383c32107d6c174f15e259bb23a',
indexName: 'aragon',
algoliaOptions: {} // Optional, if provided by Algolia
},
// This copyright info is used in /core/Footer.js and blog rss/atom feeds.
copyright:
'Creative Commons ' +
new Date().getFullYear() +
' Aragon Project',
highlight: {
// Highlight.js theme to use for syntax highlighting in code blocks
theme: 'atom-one-dark',
hljs: function(hljs) {
hljsDefineSolidity(hljs)
}
},
/* On page navigation for the current documentation page */
onPageNav: 'separate',
/* Open Graph and Twitter card images */
ogImage: 'img/docusaurus.png',
twitterImage: 'img/docusaurus.png',
// You may provide arbitrary config keys to be used as needed by your
// template. For example, if you need your repo's URL...
// repoUrl: 'https://github.com/facebook/test-site',
renderToString: element => {
const sheet = new ServerStyleSheet()
const html = renderToStaticMarkup(
sheet.collectStyles(
React.createElement(
PublicUrl.Provider,
{ url: '/aragon-ui/' },
React.createElement(BaseStyles, { enableLegacyFonts: true }),
element
)
)
)
const insertStylesAt = html.lastIndexOf('</body>')
return `
<!DOCTYPE html>
<script type="text/javascript">
var _paq = _paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://arastats.eu/staats/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '7']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<script src="/docs/assets/js/bodymovin.js"></script>
<noscript><img src="https://arastats.eu/staats/piwik.php?idsite=7&rec=1" style="border:0" alt="" /></noscript>
${html.slice(0, insertStylesAt)}
${sheet.getStyleTags()}
${html.slice(insertStylesAt)}
`.trim()
},
}
module.exports = siteConfig