-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathdocusaurus.config.ts
More file actions
150 lines (139 loc) · 4.33 KB
/
docusaurus.config.ts
File metadata and controls
150 lines (139 loc) · 4.33 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
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
import { themes as prismThemes } from "prism-react-renderer"
import type { Config } from "@docusaurus/types"
import type * as Preset from "@docusaurus/preset-classic"
const config: Config = {
title: "Refine Development",
tagline: "Quality products without breaking the bank",
favicon: "logo.png",
url: "https://docs.refinedev.org",
trailingSlash: true,
baseUrl: "/",
onBrokenLinks: "warn",
onBrokenAnchors: "ignore",
markdown: {
mermaid: true,
},
i18n: {
defaultLocale: "en",
locales: ["en"]
},
presets: [
[
"classic",
{
docs: {
routeBasePath: "/",
sidebarPath: "./sidebars.ts",
exclude: [
"README.md",
"**/_*",
"Template",
"Phoenix/Phoenix.mdx",
"Carbon/Carbon.mdx",
"Zephyr/Zephyr.mdx",
"Bolt/Bolt.mdx"
],
editUrl: (params) => `https://github.com/RefineDevelopment/Documentation/blob/master/docs/${params.docPath}`
},
blog: false,
theme: {
customCss: "./src/custom.css"
}
} satisfies Preset.Options
]
],
plugins: [
async function tailwindPlugin(context, options) {
return {
name: "docusaurus-tailwindcss",
configurePostCss(postcssOptions) {
return postcssOptions
}
}
}
],
themeConfig: {
image: "banner.png",
colorMode: {
disableSwitch: true,
defaultMode: "dark",
respectPrefersColorScheme: false,
},
navbar: {
title: "Refine Development",
logo: {
alt: "Refine Logo",
src: "logo.png"
},
style: "dark",
items: [
{
to: "/",
position: "left",
label: "Home",
activeBaseRegex: "^/$"
},
{
to: "Phoenix/Introduction",
position: "left",
label: "Phoenix",
activeBaseRegex: "/Phoenix"
},
{
to: "Bolt/Introduction",
position: "left",
label: "Bolt",
activeBaseRegex: "^/Bolt/"
},
{
to: "Carbon/Introduction",
position: "left",
label: "Carbon",
activeBaseRegex: "/Carbon"
},
{
to: "Zephyr/Introduction/",
position: "left",
label: "Zephyr",
activeBaseRegex: "/Zephyr/Introduction"
},
// {
// to: "BoltWebAddon/Introduction/",
// position: "left",
// label: "Bolt Web Addon",
// activeBaseRegex: "/BoltWebAddon/Introduction"
// },
{
type: 'search',
position: 'right'
},
{
href: 'https://refinedev.org',
label: 'Main Website',
position: 'right',
className: 'button button--primary navbar-button',
target: '_blank'
}
]
},
footer: {
style: 'dark',
links: [],
copyright: `
<a
href="https://shedux.dev"
target="_blank"
class="inline-block transition-all duration-300 hover:drop-shadow-[0_0_12px_rgba(255,255,255,0.5)] opacity-60 hover:opacity-100"
>
<img src="/signature.png" alt="shedux" class="h-10 w-auto" />
</a>
`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: ["java", "bash"]
}
} satisfies Preset.ThemeConfig
}
export default config