-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.js
71 lines (69 loc) · 1.94 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
// @ts-check
const { themes } = require('prism-react-renderer')
const lightTheme = themes.github
const darkTheme = themes.dracula
const PROJECT_NAME = 'dev-points'
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: 'Max Radzivonau. DevPoints',
tagline: '',
url: 'https://rodmax.github.io',
baseUrl: `/${PROJECT_NAME}/`,
trailingSlash: false,
organizationName: 'rodmax',
projectName: PROJECT_NAME,
favicon: 'img/favicon.svg',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
themeConfig: {
navbar: {
title: `/dev/points --author=max.radzivonau`,
logo: {
alt: 'Dev Tips Logo',
src: 'img/ava.png',
},
items: [
{
href: 'https://github.com/rodmax',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'light',
links: [],
copyright: `Copyright © ${new Date().getFullYear()} Max Rodionov. Built with <a target="_blank" href="https://docusaurus.io">Docusaurus</a>.`,
},
prism: {
theme: lightTheme,
darkTheme: darkTheme,
},
},
plugins: [
[
require.resolve('@easyops-cn/docusaurus-search-local'),
{
hashed: true,
indexDocs: false,
language: ['en', 'ru'],
blogRouteBasePath: '/',
},
],
],
presets: [
[
'@docusaurus/preset-classic',
{
docs: false,
blog: {
routeBasePath: '/',
showReadingTime: true,
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
}