Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Commit 9fcb497

Browse files
committed
clean up docusaurus.config.js
1 parent 9663f11 commit 9fcb497

File tree

1 file changed

+6
-69
lines changed

1 file changed

+6
-69
lines changed

docusaurus.config.js

Lines changed: 6 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -6,45 +6,31 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
66

77
/** @type {import('@docusaurus/types').Config} */
88
const config = {
9-
title: 'Writing a JavaScript Compiler in Rust',
10-
tagline: '',
9+
title: 'Write a JavaScript Compiler in Rust',
1110
url: 'https://boshen.github.io',
1211
baseUrl: '/javascript-compiler-in-rust/',
1312
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',
1915
organizationName: 'Boshen', // Usually your GitHub org/user name.
2016
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".
2517
i18n: {
2618
defaultLocale: 'en',
2719
locales: ['en'],
2820
},
29-
3021
presets: [
3122
[
3223
'classic',
3324
/** @type {import('@docusaurus/preset-classic').Options} */
3425
({
3526
docs: {
3627
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,
4130
},
4231
blog: {
32+
editUrl: 'https://github.com/Boshen/javascript-compiler-in-rust/tree/main/blog',
4333
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/',
4834
},
4935
theme: {
5036
customCss: require.resolve('./src/css/custom.css'),
@@ -62,10 +48,6 @@ const config = {
6248
},
6349
navbar: {
6450
title: 'Home',
65-
// logo: {
66-
// alt: 'My Site Logo',
67-
// src: 'img/logo.svg',
68-
// },
6951
items: [
7052
{
7153
type: 'doc',
@@ -81,51 +63,6 @@ const config = {
8163
},
8264
],
8365
},
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-
// },
12966
prism: {
13067
theme: lightCodeTheme,
13168
darkTheme: darkCodeTheme,

0 commit comments

Comments
 (0)