@@ -6,45 +6,31 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
6
6
7
7
/** @type {import('@docusaurus/types').Config } */
8
8
const config = {
9
- title : 'Writing a JavaScript Compiler in Rust' ,
10
- tagline : '' ,
9
+ title : 'Write a JavaScript Compiler in Rust' ,
11
10
url : 'https://boshen.github.io' ,
12
11
baseUrl : '/javascript-compiler-in-rust/' ,
13
12
onBrokenLinks : 'throw' ,
14
- onBrokenMarkdownLinks : 'warn' ,
15
- // favicon: '',
16
-
17
- // GitHub pages deployment config.
18
- // If you aren't using GitHub pages, you don't need these.
13
+ onBrokenMarkdownLinks : 'throw' ,
14
+ onDuplicateRoutes : 'throw' ,
19
15
organizationName : 'Boshen' , // Usually your GitHub org/user name.
20
16
projectName : 'javascript-compiler-in-rust' , // Usually your repo name.
21
-
22
- // Even if you don't use internalization, you can use this field to set useful
23
- // metadata like html lang. For example, if your site is Chinese, you may want
24
- // to replace "en" with "zh-Hans".
25
17
i18n : {
26
18
defaultLocale : 'en' ,
27
19
locales : [ 'en' ] ,
28
20
} ,
29
-
30
21
presets : [
31
22
[
32
23
'classic' ,
33
24
/** @type {import('@docusaurus/preset-classic').Options } */
34
25
( {
35
26
docs : {
36
27
sidebarPath : require . resolve ( './sidebars.js' ) ,
37
- // Please change this to your repo.
38
- // Remove this to remove the "edit this page" links.
39
- // editUrl:
40
- // 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
28
+ editUrl : 'https://github.com/Boshen/javascript-compiler-in-rust/tree/main/docs/' ,
29
+ showReadingTime : true ,
41
30
} ,
42
31
blog : {
32
+ editUrl : 'https://github.com/Boshen/javascript-compiler-in-rust/tree/main/blog' ,
43
33
showReadingTime : true ,
44
- // Please change this to your repo.
45
- // Remove this to remove the "edit this page" links.
46
- // editUrl:
47
- // 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
48
34
} ,
49
35
theme : {
50
36
customCss : require . resolve ( './src/css/custom.css' ) ,
@@ -62,10 +48,6 @@ const config = {
62
48
} ,
63
49
navbar : {
64
50
title : 'Home' ,
65
- // logo: {
66
- // alt: 'My Site Logo',
67
- // src: 'img/logo.svg',
68
- // },
69
51
items : [
70
52
{
71
53
type : 'doc' ,
@@ -81,51 +63,6 @@ const config = {
81
63
} ,
82
64
] ,
83
65
} ,
84
- // footer: {
85
- // style: 'dark',
86
- // links: [
87
- // {
88
- // title: 'Docs',
89
- // items: [
90
- // {
91
- // label: 'Tutorial',
92
- // to: '/docs/intro',
93
- // },
94
- // ],
95
- // },
96
- // {
97
- // title: 'Community',
98
- // items: [
99
- // {
100
- // label: 'Stack Overflow',
101
- // href: 'https://stackoverflow.com/questions/tagged/docusaurus',
102
- // },
103
- // {
104
- // label: 'Discord',
105
- // href: 'https://discordapp.com/invite/docusaurus',
106
- // },
107
- // {
108
- // label: 'Twitter',
109
- // href: 'https://twitter.com/docusaurus',
110
- // },
111
- // ],
112
- // },
113
- // {
114
- // title: 'More',
115
- // items: [
116
- // {
117
- // label: 'Blog',
118
- // to: '/blog',
119
- // },
120
- // {
121
- // label: 'GitHub',
122
- // href: 'https://github.com/facebook/docusaurus',
123
- // },
124
- // ],
125
- // },
126
- // ],
127
- // copyright: `Copyright © ${new Date().getFullYear()} Boshen, Inc. Built with Docusaurus.`,
128
- // },
129
66
prism : {
130
67
theme : lightCodeTheme ,
131
68
darkTheme : darkCodeTheme ,
0 commit comments