forked from polkadot-js/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
52 lines (51 loc) · 1.29 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
const BASE_URL = process.env.NODE_ENV === 'development' ? '/' : '/docs/';
module.exports = {
title: 'polkadot{.js}',
tagline: 'Polkadot does JavaScript',
url: 'https://polkadot.js.org',
baseUrl: BASE_URL,
favicon: 'img/favicon.ico',
organizationName: 'polkadot-js',
onBrokenLinks: 'warn',
projectName: 'docs',
stylesheets: [],
themeConfig: {
navbar: {
title: 'polkadot{.js}',
logo: {
alt: 'polkadot{.js}',
src: 'img/logo.svg',
},
items: [
{
href: 'https://polkadot.js.org/apps/',
label: 'Apps UI (Wallet)',
position: 'right',
},
{
href: 'https://github.com/polkadot-js/docs',
label: 'GitHub',
position: 'right',
},
],
},
footer: {}
},
presets: [
['@docusaurus/preset-classic', {
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/polkadot-js/docs/edit/master/',
routeBasePath: '/'
},
blog: {
showReadingTime: true,
editUrl: 'https://github.com/polkadot-js/docs/edit/master/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
}
}]
],
plugins: [require.resolve("@cmfcmf/docusaurus-search-local")],
};