-
Notifications
You must be signed in to change notification settings - Fork 55
/
docusaurus.config.js
169 lines (168 loc) · 4.76 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
// const versions = require('./versions.json');
module.exports = {
title: 'HumHub Documentation',
tagline: 'Your source of information all around the Open Source social network HumHub',
url: 'https://docs.humhub.org',
baseUrl: '/',
favicon: 'img/favicon.ico',
organizationName: 'humhub', // Usually your GitHub org/user name.
projectName: 'humhub', // Usually your repo name.
onBrokenLinks: 'warn',
themes: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
({
hashed: true,
}),
],
],
themeConfig: {
prism: {
additionalLanguages: ['php'],
},
navbar: {
title: 'HumHub Documentation',
logo: {
alt: 'HumHub',
src: 'img/logo.svg',
},
hideOnScroll: true,
items: [
/*{
to: 'versions',
label: `${versions[0].substr(6)}`,
position: 'left',
style: {
whiteSpace: 'nowrap',
padding: '0.25rem 0.5rem 0.2rem 0.25rem',
fontSize: 'calc(0.9 * var(--ifm-font-size-base))',
textDecoration: 'underline',
},
},*/
{
label: 'About',
position: 'left',
activeBasePath: 'docs/about',
items: [
{label: 'HumHub', to: 'docs/about/humhub'},
{label: 'Release Notes', to: 'docs/about/releasenotes/release_notes'},
{label: 'Contribution', to: 'docs/about/contribution'},
{label: 'Support', to: 'docs/about/support'},
{label: 'License', href: 'https://www.humhub.com/en/licences'},
]},
// {to: 'docs/about/humhub', activeBasePath: 'docs/about', label: 'About', position: 'left'},
{to: 'docs/admin/introduction', activeBasePath: 'docs/admin', label: 'Administration', position: 'left'},
{to: 'docs/theme/overview', activeBasePath: 'docs/theme', label: 'Theming', position: 'left'},
{to: 'docs/develop/overview', activeBasePath: 'docs/develop', label: 'Development', position: 'left'},
{to: 'docs/professional-edition/pe-intro', activeBasePath: 'docs/professional', label: 'Professional Edition', position: 'left'},
//{to: 'blog', label: 'Blog', position: 'left'},
{
href: 'https://github.com/humhub/humhub',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Guides',
items: [
{
label: 'About',
to: 'docs/about/humhub',
},
{
label: 'Administration',
to: 'docs/admin/introduction',
},
{
label: 'Theming',
to: 'docs/theme/overview',
},
{
label: 'Development',
to: 'docs/develop/overview',
},
{
label: 'Professional Edition',
to: 'docs/professional-edition/pe-intro',
},
/* {
label: 'Models and APIs',
href: '#',
},
{
label: 'User Guide',
href: '#',
},*/
],
},
{
title: 'Community',
items: [
{
label: 'HumHub Community',
href: 'https://community.humhub.com/dashboard',
},
{
label: 'HumHub Translation',
href: 'https://translate.humhub.org',
},
],
},
{
title: 'Social',
items: [
/* {
label: 'Blog',
to: 'blog',
},*/
{
label: 'GitHub',
href: 'https://github.com/humhub/humhub',
},
{
label: 'Twitter',
href: 'https://twitter.com/humhub',
},
{
label: 'Facebook',
href: 'https://www.facebook.com/thehumhub'
},
],
},
{
title: 'More',
items: [
{
label: 'Homepage',
href: 'https://www.humhub.com',
},
{
label: 'Marketplace',
href: 'https://marketplace.humhub.com',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} HumHub. All rights reserved. `,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl:
'https://github.com/humhub/documentation/edit/master/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
};