Repository navigation
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
154 lines (152 loc) · 3.98 KB
/
Copy pathdocusaurus.config.js
File metadata and controls
154 lines (152 loc) · 3.98 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
151
152
153
154
const path = require('path');
const BASE_URL = '/docs/';
module.exports = {
title: 'DevWeb3Jogja',
tagline: 'Dokumentasi pembelajaran Web3 development untuk komunitas DevWeb3Jogja',
url: 'https://DevWeb3Jogja.github.io', // Ganti dengan URL production kamu
baseUrl: BASE_URL,
i18n: {
defaultLocale: 'id',
locales: ['id'],
localeConfigs: {
id: { label: 'Bahasa Indonesia' },
},
},
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
favicon: 'image/devweb3jogja.png',
organizationName: 'DevWeb3Jogja',
projectName: 'docs-devweb3jogja',
trailingSlash: true,
presets: [
[
'@docusaurus/preset-classic',
/** @type {import('@docusaurus/preset-classic').Options} */
{
docs: {
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/devweb3jogja/docs/edit/main/',
},
blog: false, // Disable blog
theme: {
customCss: [
require.resolve('./node_modules/modern-normalize/modern-normalize.css'),
require.resolve('./src/styles/custom.scss'),
],
},
},
],
],
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
themeConfig: {
metadata: [
{ name: 'og:image', content: 'https://devweb3jogja.id/img/og-image.png' },
{ name: 'twitter:image', content: 'https://devweb3jogja.id/img/og-image.png' },
{
name: 'twitter:card',
content: 'summary_large_image',
},
{
name: 'og:type',
content: 'website',
},
{
name: 'og:site_name',
content: 'DevWeb3Jogja Docs',
},
],
colorMode: {
defaultMode: 'dark', // Default dark mode sesuai preferensi hitam
disableSwitch: false,
respectPrefersColorScheme: true,
},
navbar: {
hideOnScroll: false,
title: 'DevWeb3Jogja',
logo: {
alt: 'DevWeb3Jogja Logo',
src: 'image/devweb3jogja2.png',
srcDark: 'image/devweb3jogja2.png',
href: '/',
target: '_self',
},
items: [
{
type: 'search',
position: 'right',
},
{
href: 'https://github.com/devweb3jogja',
position: 'right',
className: 'header-github-link',
'aria-label': 'GitHub repository',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Getting Started',
to: '/',
},
{
label: 'EVM Basics',
to: '/evm',
},
{
label: 'Developer Tools',
to: '/developer-tools',
},
],
},
{
title: 'Community',
items: [
{
label: 'GitHub',
href: 'https://github.com/devweb3jogja',
},
{
label: 'Twitter',
href: 'https://twitter.com/devweb3jogja',
},
{
label: 'Telegram',
href: 'https://t.me/devweb3jogja',
},
],
},
],
logo: {
alt: 'DevWeb3Jogja Logo',
src: 'image/devweb3jogja2.png',
href: 'https://devweb3jogja.id',
width: 120,
},
copyright: `Copyright © ${new Date().getFullYear()} DevWeb3Jogja`,
},
prism: {
theme: { plain: {}, styles: [] },
darkTheme: { plain: {}, styles: [] },
additionalLanguages: ['solidity', 'bash', 'json', 'diff'],
},
// Algolia DocSearch - perlu setup terpisah di https://docsearch.algolia.com/
// Uncomment setelah mendapatkan credentials dari Algolia
// algolia: {
// appId: 'YOUR_APP_ID',
// apiKey: 'YOUR_SEARCH_API_KEY',
// indexName: 'devweb3jogja',
// contextualSearch: true,
// },
},
plugins: [
'docusaurus-plugin-sass',
],
customFields: {},
themes: [],
};