forked from contember/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.js
88 lines (86 loc) · 2.2 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
require('dotenv').config()
const path = require('path')
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Contember',
tagline: 'Fast and straightforward way to build apps that just work',
url: 'https://docs.contember.com',
baseUrl: '/',
favicon: 'img/contember-logo.png',
organizationName: 'contember',
projectName: 'contember',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
customFields: {
contemberSessionToken: process.env.CONTEMBER_SESSION_TOKEN,
contemberApiBaseUrl: process.env.CONTEMBER_API_URL,
contemberProjectName: process.env.CONTEMBER_PROJECT_NAME,
},
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
prism: {
theme: require('prism-react-renderer/themes/nightOwl'),
additionalLanguages: ['typescript'],
},
colorMode: {
disableSwitch: false,
respectPrefersColorScheme: true,
},
algolia: {
appId: 'J1HMGG24O1',
apiKey: 'efb29dbb8730f33e7525ec6375ffc60d',
indexName: 'docs-contember',
contextualSearch: true,
},
navbar: {
title: '',
logo: {
alt: 'Contember Logo',
src: 'img/contember-logotype.svg',
srcDark: 'img/contember-logotype-dark.svg',
href: 'http://www.contember.com/',
target: '_self'
},
items: [
{
href: 'https://github.com/contember',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
copyright: `Copyright © ${new Date().getFullYear()} Contember.com. Built with Docusaurus.`,
},
}),
presets: [
[
'@docusaurus/preset-classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
path: 'docs',
routeBasePath: '/',
editUrl: 'https://github.com/contember/doc/edit/main/',
sidebarPath: require.resolve('./sidebars.js'),
docLayoutComponent: '@theme/DocPage',
docItemComponent: '@theme/DocItem',
},
theme: {
customCss: [
require.resolve('@contember/admin/style.css'),
require.resolve('./src/index.sass'),
],
},
blog: false,
pages: false,
}),
],
],
plugins: [
path.join(__dirname, '/src/plugins/webpack-configuration-plugin'),
'docusaurus-plugin-sass',
]
}
module.exports = config