-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
94 lines (92 loc) · 2.97 KB
/
docusaurus.config.js
File metadata and controls
94 lines (92 loc) · 2.97 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
require('dotenv').config();
const lightCodeTheme = require('prism-react-renderer').themes.github;
const darkCodeTheme = require('prism-react-renderer').themes.dracula;
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: 'BonusBlock Docs',
tagline: 'Rewarding on-chain activities',
url: 'https://docs.bonusblock.io',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'favicon.ico',
organizationName: 'BBlockLabs',
projectName: 'docs.bonusblock.io',
trailingSlash: false,
i18n: {
defaultLocale: 'en-GB',
locales: ['en-GB']
},
themeConfig: {
imageZoom: {
selector: 'article img',
},
navbar: {
title: 'Docs',
},
footer: {},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
colorMode: {
respectPrefersColorScheme: true,
},
tableOfContents: {
minHeadingLevel: 2,
maxHeadingLevel: 3,
},
},
customFields: {
pageCategories: [
{
name: 'overview',
children: [
{name: 'Explore BonusBlock', value: '/docs/about', img: '/img/illustrations/about-us.svg'},
{name: 'Connect with Community', value: '/docs/connect-with-community', img: '/img/illustrations/connect-community.svg'},
{name: 'Media Kit', value: '/docs/media-kit', img: '/img/illustrations/media-kit.svg'},
],
},
{
name: 'nodes',
children: [],
},
],
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// sidebarItemsGenerator: require('./sidebars.js'),
breadcrumbs: true,
showLastUpdateAuthor: false,
showLastUpdateTime: true,
},
blog: false,
theme: {
customCss: [
require.resolve('./src/css/custom.css'),
require.resolve('./src/css/markdown.css'),
require.resolve('./src/css/icons.css'),
],
},
},
],
],
plugins: [
'plugin-image-zoom',
async function docusaurusTailwindcssPlugin(context, options) {
return {
name: 'docusaurus-tailwindcss',
configurePostCss(postcssOptions) {
postcssOptions.plugins.push(require('tailwindcss'));
postcssOptions.plugins.push(require('autoprefixer'));
postcssOptions.plugins.push(require('postcss-nested'));
return postcssOptions;
},
};
},
],
};