-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocusaurus.config.ts
188 lines (177 loc) · 5.23 KB
/
docusaurus.config.ts
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
import { themes as prismThemes } from "prism-react-renderer";
import type { Config } from "@docusaurus/types";
import type * as Preset from "@docusaurus/preset-classic";
import tailwindPlugin from "./tailwind-config.cjs";
import remarkMath from "remark-math";
import rehypeKatex from "rehype-katex";
const config: Config = {
title: "Ringkasan SKD CPNS",
tagline:
"Menggunakan teknologi kecerdasan buatan (AI) untuk memastikan kualitas dan relevansi materi",
favicon: "img/fun.ico",
url: "https://zanwaar.github.io",
baseUrl: "/ringkasan-skd-cpns/",
projectName: "ringkasan-skd-cpns",
organizationName: "zanwaar",
trailingSlash: false,
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
i18n: {
defaultLocale: "en",
locales: ["en"],
},
presets: [
[
"classic",
{
docs: {
sidebarPath: "./sidebars.ts",
editUrl: "https://github.com/zanwaar/ringkasan-cpns-skd/tree/main/",
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
},
blog: {
showReadingTime: true,
feedOptions: {
type: ["rss", "atom"],
xslt: true,
},
editUrl: "https://github.com/zanwaar/ringkasan-cpns-skd/tree/main/",
onInlineTags: "warn",
onInlineAuthors: "warn",
onUntruncatedBlogPosts: "warn",
remarkPlugins: [require("remark-math")],
rehypePlugins: [require("rehype-katex")],
},
theme: {
customCss: "./src/css/custom.css",
},
} satisfies Preset.Options,
],
],
stylesheets: [
{
href: "https://cdn.jsdelivr.net/npm/katex@0.13.24/dist/katex.min.css",
type: "text/css",
integrity:
"sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM",
crossorigin: "anonymous",
},
],
themeConfig: {
image: "img/fun.jpg",
navbar: {
title: "Funpice",
logo: {
alt: "Funpice logo",
src: "img/fun.svg",
},
items: [
{
type: "docSidebar",
sidebarId: "panduan",
position: "left",
label: "Ringkasan SKD CPNS",
},
{
href: "/ai-funpice",
position: "left",
label: "Funpice AI Generator",
},
{
type: "html",
position: "right",
value: `
<iframe
src="https://ghbtns.com/github-btn.html?user=zanwaar&repo=ringkasan-skd-cpns&type=star&size=large"
frameborder="0"
scrolling="0"
width="70"
height="30"
title="GitHub Star Button"
style="
display: inline-block;
vertical-align: middle;
"
></iframe>`,
},
{
type: "html",
position: "right",
value: `
<a href="/ringkasan-skd-cpns/docs/dukungan-sponsor"
style="
padding: 5px 7px;
background-color: #E0E0E0;
color: black;
border: none;
border-radius: 5px;
cursor: pointer;
text-decoration: none;
">
💖
</a>
`,
},
],
},
footer: {
style: "dark",
copyright: `Copyright © ${new Date().getFullYear()} Ringkasan SKD CPNS | Batukel Development.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
plugins: [
tailwindPlugin,
[
"docusaurus2-dotenv",
{
path: "./.env", // The path to your environment variables.
safe: false, // If false ignore safe-mode, if true load './.env.example', if a string load that file as the sample
systemvars: false, // Set to true if you would rather load all system variables as well (useful for CI purposes)
silent: false, // If true, all warnings will be suppressed
expand: false, // Allows your variables to be "expanded" for reusability within your .env file
defaults: false, // Adds support for dotenv-defaults. If set to true, uses ./.env.defaults
ignoreStub: true,
},
],
[
"@docusaurus/plugin-pwa",
{
debug: true, // Gunakan true untuk development, ubah ke false untuk production
offlineModeActivationStrategies: [
"appInstalled", // Aktifkan saat aplikasi diinstall
"standalone", // Aktifkan saat diakses dalam mode standalone
"queryString", // Aktifkan saat ada query string di URL
],
pwaHead: [
{
tagName: "link",
rel: "icon",
href: "/img/fun.ico", // Ganti dengan icon kamu
},
{
tagName: "link",
rel: "manifest",
href: "/manifest.json", // Arahkan ke manifest.json untuk PWA
},
{
tagName: "meta",
name: "theme-color",
content: "#8936FF", // Sesuaikan dengan tema situsmu
},
],
},
],
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
hashed: true,
},
],
],
};
export default config;