-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
106 lines (105 loc) · 2.59 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
/**
* @type {Partial<import('@docusaurus/types').DocusaurusConfig>}
*/
const config = {
title: 'Pub/Sub Node.js Framework',
tagline:
'NodeJS Framework to add pubsub topics/subscriptions to your service',
customFields: {
meta: {
description:
'NodeJS Framework to add pubsub topics/subscriptions to your service',
},
},
url: process.env.CI
? 'https://deliveryhero.github.io'
: 'http://localhost:3000', // Your website URL
baseUrl: process.env.CI ? '/hfc-pubsub/' : '/', // Base URL for your project */
favicon: 'img/favicon.png',
presets: [
[
'@docusaurus/preset-classic',
{
debug: Boolean(process.env.DEBUG || process.env.CI),
customCss: [require.resolve('./docs/custom.css')],
docs: {
routeBasePath: '/',
editUrl: 'https://github.com/deliveryhero/hfc-pubsub/edit/main/',
lastVersion: 'current',
versions: {
current: {
label: 'v2',
// path: '2.x',
},
},
},
},
],
],
plugins: [
[
'docusaurus-plugin-typedoc',
{
entryPoints: ['./src/index.ts'],
tsconfig: './tsconfig.build.json',
},
],
],
themeConfig: {
navbar: {
title: 'Pub/Sub Node.js Framework',
items: [
{
label: 'Docs',
position: 'left',
to: '/',
},
{
label: 'API',
to: '/api',
},
{
type: 'docsVersionDropdown',
position: 'right',
},
],
},
footer: {
logo: {
alt: 'HFC Logo',
src: 'img/hfc.png',
},
style: 'dark',
links: [
{
title: 'Links',
items: [
{
label: 'NPM',
href: 'https://www.npmjs.com/package/@honestfoodcompany/pubsub/',
},
{
label: 'Github',
href: 'https://github.com/deliveryhero/hfc-pubsub',
},
],
},
{
title: 'About',
items: [
{
label: 'Honest Food Company',
href: 'https://www.honestfoodcompany.de/',
},
{
label: 'Delivery Hero',
href: 'https://www.deliveryhero.com/',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Delivery Hero HF Kitchens GmbH. Built with <a href="https://github.com/facebook/docusaurus" target="_blank" rel="noopener noreferrer">Docusaurus</a>.`,
},
},
};
module.exports = config;