-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
111 lines (107 loc) · 3.11 KB
/
docusaurus.config.js
File metadata and controls
111 lines (107 loc) · 3.11 KB
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
import path from 'path';
// @ts-check
const { themes } = require('prism-react-renderer');
/** @type {import('@docusaurus/types').Config} */
module.exports = {
title: 'SHKeeper Docs',
url: 'https://docs.shkeeper.io',
baseUrl: '/',
favicon: 'img/favicon.ico',
organizationName: 'vsys-host',
projectName: 'shkeeper-docs',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
i18n: { defaultLocale: 'en', locales: ['en'] },
presets: [
[
'classic',
{
docs: {
routeBasePath: 'docs',
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/vsys-host/shkeeper-docs/edit/main/',
showLastUpdateAuthor: false,
showLastUpdateTime: false,
},
blog: false,
theme: { customCss: require.resolve('./src/css/custom.css') },
},
],
[
'redocusaurus',
{
config: path.join(__dirname, 'redocly.yaml'),
specs: [
{
id: 'shkeeper',
spec: 'static/openapi/openapi.json',
route: '/api',
},
],
theme: { primaryColor: '#2e8555' },
},
],
],
plugins: [
// 🔎 Local search- indexing only /docs, exclude /api
[
'@easyops-cn/docusaurus-search-local',
{
id: 'search',
language: ['en'],
hashed: true,
indexDocs: true,
indexBlog: false,
indexPages: false,
docsRouteBasePath: ['/docs'],
highlightSearchTermsOnTargetPage: true,
removeDefaultStopWordFilter: false,
},
],
],
themeConfig: {
navbar: {
logo: { alt: 'SHKeeper Logo', src: 'img/shkeeper-logo.svg', href: 'https://shkeeper.io' },
items: [
{ type: 'docSidebar', sidebarId: 'defaultSidebar', to: '/docs/intro', position: 'left', label: 'Docs' },
{ to: '/api', label: 'API', position: 'left' },
{
href: 'https://github.com/vsys-host/shkeeper-docs',
label: 'GitHub',
position: 'right',
},
{ type: 'search', position: 'right', },
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{ label: 'Introduction', to: '/docs/intro' },
{ label: 'Getting Started', to: '/docs/getting-started/requirements' },
{ label: 'User Guide', to: '/docs/user-guide/configuration' },
{ label: 'Developer Guide', to: '/docs/developer-guide/architecture-overview' },
{ label: 'FAQ', to: '/docs/faqs' },
],
},
{
title: 'Community',
items: [
{ label: 'X', href: 'https://x.com/shkeeper_io', },
{ label: 'Telegram', href: 'https://t.me/shkeeper_updates', },
],
},
{
title: 'More',
items: [
{ label: 'GitHub', href: 'https://github.com/vsys-host/shkeeper.io', },
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} SHKeeper.io. Open-source under GPL-3.0`,
},
prism: { theme: themes.github, darkTheme: themes.dracula },
},
};