-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.js
120 lines (115 loc) Β· 2.74 KB
/
docusaurus.config.js
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
const { webpackPlugin } = require('./src/plugins').default;
const { ProvidePlugin } = require('webpack');
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const config = {
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
title: 'Developer Jun',
tagline: '',
url: 'https://jjunhaa0211.github.io',
baseUrl: '/Developer_Jun/',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon-32x32.png',
organizationName: 'jjunhaa0211',
projectName: 'Developer_Jun',
plugins: [
() => ({
name: 'custom-webpack-config',
configureWebpack(config) {
return {
module: {
rules: [
{
test: /\.m?js/,
resolve: {
fullySpecified: false,
},
},
],
},
plugins: [
new ProvidePlugin({
process: require.resolve('process/browser'),
}),
],
resolve: {
fallback: {
stream: require.resolve('stream-browserify'),
path: require.resolve('path-browserify'),
buffer: require.resolve('buffer/'),
url: require.resolve('url/'),
},
},
};
},
}),
],
presets: [
[
'classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/immutable/imx-docs/tree/main/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
sitemap: {
changefreq: 'weekly',
priority: 0.5,
ignorePatterns: ['/tags/**'],
},
},
],
],
themeConfig: {
navbar: {
logo: {
alt: 'Immutable Logo',
src: 'junha',
srcDark: 'junha',
},
items: [
{
to: '/',
position: 'left',
label: 'Home',
},
{
type: 'doc',
docId: 'overview/welcome',
position: 'left',
label: 'Docs',
},
{
position: 'left',
label: 'SDKs',
type: 'doc',
docId: 'guides/getting-started-guide',
},
],
},
colorMode: {
defaultMode: 'light',
disableSwitch: false,
respectPrefersColorScheme: true,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ['solidity'],
},
algolia: {
appId: '2KKA2HFUSD',
apiKey: '2cb7547e9bf1ee7ee1b033acb6387c1d',
indexName: 'prod_imxdocs',
contextualSearch: true,
},
},
};
module.exports = config;