forked from actix/actix-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
73 lines (72 loc) · 1.81 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
const path = require('path');
module.exports = {
title: 'Actix',
tagline: 'Actix Web 是一个功能强大、实用、极速的 Rust Web 框架',
url: 'https://tech-cn.github.io',
baseUrl: '/actix-website',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/logo.png',
organizationName: 'tech-cn', // Usually your GitHub org/user name.
projectName: 'actix-website', // Usually your repo name.
deploymentBranch: 'deploy-cn',
themeConfig: {
navbar: {
title: 'Actix',
logo: {
alt: 'Actix Logo',
src: 'img/logo-icon.png',
width: 32,
height: 32,
},
items: [
{
to: 'docs',
activeBasePath: 'docs',
label: '文档',
position: 'left',
},
{
to: 'community',
activeBasePath: 'community',
label: '社区',
position: 'left',
},
{
to: 'code',
activeBasePath: 'code',
label: '代码',
position: 'left',
},
],
},
footer: {
copyright: `Copyright © ${new Date().getFullYear()} The Actix Team`,
},
prism: {
// dracula is closest to docs.rs, where keywords are highlighted
theme: require('prism-react-renderer/themes/dracula'),
additionalLanguages: ['rust', 'toml'],
defaultLanguage: 'rust'
},
colorMode: {
respectPrefersColorScheme: true,
}
},
plugins: ["docusaurus-plugin-sass"],
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl:
'https://github.com/actix/actix-website/edit/master/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
};