-
Notifications
You must be signed in to change notification settings - Fork 6
/
docusaurus.config.js
154 lines (152 loc) · 4.06 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
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
/** @type {import('@docusaurus/types').DocusaurusConfig} */
// @ts-ignore
const config = {
title: 'hentaiOS Docuwiki',
tagline: 'mmmmmmmmmmmmmmmmmm',
url: 'https://wiki.helluvaos.com',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'hentaiOS-Infrastructure',
projectName: 'wiki.helluvaos.com',
trailingSlash: false,
themeConfig: {
prism: {
theme: require('prism-react-renderer').themes.github,
darkTheme: require('prism-react-renderer').themes.github,
},
navbar: {
hideOnScroll: true,
logo: {
alt: 'helluvaOS Logo',
src: 'img/helluvaOS Logo Dark.svg',
srcDark: 'img/helluvaOS Logo Light.svg',
},
items: [
{
type: 'doc',
docId: 'intro',
position: 'left',
label: 'Docs',
},
{
to: 'https://blog.hentaios.com',
label: 'Blog',
position: 'left'
},
{
href: 'https://github.com/hentaiOS-Infrastructure/wiki-frontpage-develop',
label: 'GitHub',
position: 'right',
},
{
to: '/community/community-portal',
label: 'Community',
position: 'left',
activeBaseRegex: '/community/',
},
{
to: '/devtech/devtech',
label: 'DevTech',
position: 'left',
activeBaseRegex: '/devtech/',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Tutorial',
to: '/docs/intro',
},
],
},
{
title: 'Community',
items: [
{
label: 'Telegram',
href: 'https://t.me/hentaiOSchat',
},
{
label: 'Reddit',
href: 'https://www.reddit.com/r/hentaiOS/',
},
],
},
{
title: 'More',
items: [
{
label: 'GitHub',
href: 'https://github.com/hentaiOS',
},
],
},
],
logo: {
alt: 'hentaiOS Open Source Logo',
src: 'img/oss_logo.svg',
},
copyright: `Copyright © ${new Date().getFullYear()} The hentaiOS Project.<br><span class="footer__link-item">Android is a trademark of Google LLC.</span>`,
},
metadata: [
{ name: 'keywords', content: 'hentaiOS, helluvaOS, wiki, guide, knowledge base' }
],
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl: 'https://github.com/hentaiOS-Infrastructure/wiki-frontpage-develop/edit/master/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
sitemap: {
lastmod: 'date',
changefreq: 'weekly',
priority: 0.5,
ignorePatterns: ['/tags/**'],
filename: 'sitemap.xml',
createSitemapItems: async (/** @type {{ [x: string]: any; defaultCreateSitemapItems: any; }} */ params) => {
const { defaultCreateSitemapItems, ...rest } = params;
const items = await defaultCreateSitemapItems(rest);
return items.filter((/** @type {{ url: string | string[]; }} */ item) => !item.url.includes('/page/'));
},
},
},
],
],
plugins: [
[
'@docusaurus/plugin-content-docs',
{
id: 'community',
path: 'community',
routeBasePath: 'community',
sidebarPath: require.resolve('./sidebarsCommunity.js'),
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'devtech',
path: 'devtech',
routeBasePath: 'devtech',
sidebarPath: require.resolve('./devtech/sidebars.js'),
},
],
],
};
export default config;