-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
122 lines (107 loc) · 3.17 KB
/
docusaurus.config.js
File metadata and controls
122 lines (107 loc) · 3.17 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
111
112
113
114
115
116
117
118
119
120
121
// @ts-check
import {themes as prismThemes} from 'prism-react-renderer';
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'ITs Helper',
tagline: 'Doc and Guide to work with ITs Magic Engine',
favicon: 'img/favicon.ico',
future: { v4: true },
url: 'https://itshelper.vercel.app',
baseUrl: '/',
organizationName: 'itsdhanudev',
projectName: 'itshelper',
// 🔥 Stop Vercel from failing builds
onBrokenLinks: 'ignore',
onBrokenMarkdownLinks: 'ignore',
// ===== i18n =====
i18n: {
defaultLocale: 'en',
locales: ['en', 'pt', 'hi'],
localeConfigs: {
en: { label: 'English' },
pt: { label: 'Português' },
hi: { label: 'Hinglish' },
},
},
// ===== Presets =====
presets: [
[
'classic',
({
docs: {
sidebarPath: './sidebars.js',
editUrl: 'https://github.com/itsdhanudev/itshelper/tree/main/',
},
blog: {
showReadingTime: true,
feedOptions: { type: ['rss', 'atom'], xslt: true },
editUrl: 'https://github.com/itsdhanudev/itshelper/tree/main/',
},
theme: { customCss: './src/css/custom.css' },
}),
],
],
// ===== Search =====
themes: [
[
require.resolve('@cmfcmf/docusaurus-search-local'),
{
indexDocs: true,
indexBlog: true,
indexPages: true,
language: ['en', 'pt', 'hi'],
},
],
],
// ===== Theme Config =====
themeConfig: ({
image: 'img/docusaurus-social-card.jpg',
colorMode: { respectPrefersColorScheme: true },
navbar: {
title: 'ITs Helper',
logo: { alt: 'ITs Helper Logo', src: 'img/logo.svg' },
items: [
{
type: 'docSidebar',
sidebarId: 'docsSidebar',
position: 'left',
label: 'Doc',
},
{ href: 'https://github.com/itsdhanudev/itshelper', label: 'GitHub', position: 'right' },
{ type: 'localeDropdown', position: 'right' },
],
},
footer: {
style: 'dark',
links: [
{
title: 'Documentation',
items: [
{ label: 'Introduction', to: '/docs/intro' },
{ label: 'Get Started', to: '/docs/get-started' },
{ label: 'Manual', to: '/docs/manual/index' },
{ label: 'Scripting Reference', to: '/docs/scripting-reference/index' },
],
},
{
title: 'Community',
items: [
{ label: 'GitHub Discussions', href: 'https://github.com/itsdhanudev/itshelper/discussions' },
{ label: 'Report Issues', href: 'https://github.com/itsdhanudev/itshelper/issues' },
{ label: 'Contribute', href: 'https://github.com/itsdhanudev/itshelper' },
],
},
{
title: 'More',
items: [
{ label: 'ITs Magic Engine', href: 'https://itsmagic.com.br' },
{ label: 'Official Docs', href: 'https://itsmagic.com.br/documentation' },
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} ITs Helper.`,
},
prism: { theme: prismThemes.github, darkTheme: prismThemes.dracula },
}),
};
export default config;