forked from mrtnzlml/meta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
executable file
·113 lines (111 loc) · 3.51 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
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
// @flow
/**
* 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.
*/
module.exports = {
title: 'Martin Zlámal 🤓',
tagline: 'My brain extension & TIL',
url: 'https://mrtnzlml.com/',
baseUrl: '/',
favicon: 'img/favicon.ico',
organizationName: 'mrtnzlml', // Usually your GitHub org/user name.
projectName: 'meta', // Usually your repo name.
themeConfig: {
prism: {
// https://prismjs.com/#supported-languages
additionalLanguages: [
'rust',
'reason', // ReScript
],
},
announcementBar: {
id: 'github_sponsor', // Any value that will identify this message.
content:
'<strong>⭐️ Do you like this page? Help me to keep this page running via <a target="_blank" rel="noopener noreferrer" href="https://github.com/sponsors/mrtnzlml">GitHub Sponsors</a>! ⭐️</strong>',
backgroundColor: '#25c2a0', // Defaults to `#fff`.
// textColor: '#091E42', // Defaults to `#000`.
isCloseable: false, // Defaults to `true`.
},
navbar: {
// title: '👨💻',
logo: {
alt: 'My Site Logo',
src: 'img/logo.svg',
},
items: [
{ to: 'til', label: 'Short TILs', position: 'left' },
{ to: 'til-articles', label: 'Longer articles', position: 'left' },
{ to: 'docs/flow', label: 'Programming', position: 'left' },
{
href: 'https://github.com/mrtnzlml/meta',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
copyright: `Copyright © ${new Date().getFullYear()} Martin Zlámal 🤓`,
},
algolia: {
appId: 'GZH2KBNVZS',
apiKey: 'b9928e0b69a477b7cc96fc5ff7753c08',
indexName: 'mrtnzlml',
algoliaOptions: {}, // Optional, if provided by Algolia
},
},
presets: [
[
'@docusaurus/preset-classic',
{
// TODO: docs=false (after moving everything to TIL)
docs: {
sidebarPath: require.resolve('./sidebars.js'),
sidebarCollapsible: false,
editUrl: 'https://github.com/mrtnzlml/meta/tree/master/',
// showLastUpdateTime: true,
// showLastUpdateAuthor: true,
versions: {
current: {
label: 'current',
},
},
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
googleAnalytics: {
trackingID: 'UA-148481588-1',
},
},
],
],
plugins: [
[
'@docusaurus/plugin-content-blog',
{
id: 'til', // required for any multi-instance plugin
routeBasePath: '/til', // URL route for the blog section of your site (*DO NOT* include a trailing slash)
path: './til', // path to data on filesystem relative to site dir
showReadingTime: false,
blogTitle: 'Today I Learned',
blogDescription: 'Today I Learned',
blogSidebarTitle: 'Recent learnings',
blogSidebarCount: 15,
},
],
[
'@docusaurus/plugin-content-blog',
{
id: 'til-articles', // required for any multi-instance plugin
routeBasePath: '/til-articles', // URL route for the blog section of your site (*DO NOT* include a trailing slash)
path: './til-articles', // path to data on filesystem relative to site dir
blogTitle: 'Articles',
blogSidebarTitle: 'Recent articles',
},
],
],
};