This repository has been archived by the owner on Nov 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.js
146 lines (139 loc) · 5.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
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
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
// i18n: {
// defaultLocale: 'en',
// locales: ['en', 'fr'],
// },
title: 'nmrXiv',
tagline: 'Open, FAIR and Consensus-Driven NMR spectroscopy data repository and analysis platform.',
url: 'https://docs.nmrxiv.org/',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/logo.svg',
organizationName: '', // Usually your GitHub org/user name.
projectName: 'nmrXiv - Docs', // Usually your repo name.
themeConfig: {
announcementBar: {
id: 'support_us', // Any value that will identify this message.
content: 'You’re browsing the docs for beta version of nmrXiv. Please provide your feedback / suggestions <a target="_blank" rel="noopener noreferrer" href="mailto:[email protected]?subject=nmrXiv feedback/suggestions&body=Hi,<Add your suggestions here>">here</a>',
backgroundColor: '#fafbfc', // Defaults to `#fff`.
textColor: '#091E42', // Defaults to `#000`.
isCloseable: true, // Defaults to `true`.
},
colorMode: {
// "light" | "dark"
defaultMode: 'light',
// Hides the switch in the navbar
// Useful if you want to support a single color mode
disableSwitch: false,
// Should we use the prefers-color-scheme media-query,
// using user system preferences, instead of the hardcoded defaultMode
respectPrefersColorScheme: false,
},
navbar: {
title: '',
logo: {
alt: 'nmrXiv - Docs',
src: 'img/logo.svg',
},
items: [
// {
// type: 'localeDropdown',
// position: 'right',
// },
// {
// type: 'doc',
// docId: 'intro',
// position: 'left',
// label: 'DOCS',
// },
// {
// type: 'docsVersionDropdown',
// position: 'right',
// dropdownActiveClassDisabled: false,
// }
],
},
footer: {
style: 'dark',
links: [
// {
// title: 'Docs',
// items: [{
// label: 'DOCS',
// to: '/docs/intro',
// }, ],
// },
// {
// title: 'Community',
// items: [{
// label: 'Stack Overflow',
// href: 'https://stackoverflow.com/questions/tagged/docusaurus',
// },
// {
// label: 'Discord',
// href: 'https://discordapp.com/invite/docusaurus',
// },
// {
// label: 'Twitter',
// href: 'https://twitter.com/docusaurus',
// },
// ],
// },
// {
// title: 'More',
// items: [
// // {
// // label: 'Blog',
// // to: '/blog',
// // },
// {
// label: 'GitHub',
// href: 'https://github.com/facebook/docusaurus',
// },
// ],
// },
],
copyright: `© nmrXiv ${new Date().getFullYear()}. Docs built with Docusaurus. <br/> Released under the MIT License.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
algolia: {
apiKey: 'e997544c0977751470c79d938566002d',
indexName: 'nmrXiv-docs-index',
// Optional: see doc section below
contextualSearch: true,
// Optional: see doc section below
appId: '5BBX285FQW',
// Optional: Algolia search parameters
searchParameters: {},
//... other Algolia params
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo
editUrl: 'https://github.com/NFDI4Chem/nmrxiv-docs/edit/development/',
// includeCurrentVersion: false
},
// blog: {
// showReadingTime: true,
// // Please change this to your repo.
// editUrl: 'https://github.com/facebook/docusaurus/edit/master/website/blog/',
// },
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
};