Skip to content

Commit 60ff75a

Browse files
committed
Update.
1 parent 30c0f1e commit 60ff75a

File tree

1 file changed

+32
-3
lines changed

1 file changed

+32
-3
lines changed

docusaurus.config.js

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
module.exports = {
22
title: 'XRobot Docs',
3+
tagline: 'Want to be the best embedded framework',
34
url: 'https://xrobot-org.github.io',
4-
baseUrl: '/xrobot-org.github.io/',
5+
baseUrl: '/',
6+
trailingSlash: false,
57
onBrokenLinks: 'throw',
68
onBrokenMarkdownLinks: 'warn',
9+
onDuplicateRoutes: 'warn',
710
favicon: 'img/favicon.ico',
811
organizationName: 'xrobot-org',
912
projectName: 'xrobot-org.github.io',
@@ -13,8 +16,8 @@ module.exports = {
1316
locales: ['en', 'zh'],
1417
localeConfigs: {
1518
en: { label: 'English' },
16-
zh: { label: '简体中文' }
17-
}
19+
zh: { label: '简体中文' },
20+
},
1821
},
1922

2023
presets: [
@@ -24,11 +27,37 @@ module.exports = {
2427
docs: {
2528
routeBasePath: '/',
2629
sidebarPath: require.resolve('./sidebars.js'),
30+
editUrl: 'https://github.com/xrobot-org/xrobot-org.github.io/edit/XRobot2.0/',
2731
},
2832
theme: {
2933
customCss: require.resolve('./src/css/custom.css'),
3034
},
3135
},
3236
],
3337
],
38+
39+
themeConfig: {
40+
navbar: {
41+
title: 'XRobot Docs',
42+
logo: {
43+
alt: 'XRobot Logo',
44+
src: 'img/logo.svg',
45+
},
46+
items: [
47+
{
48+
type: 'localeDropdown',
49+
position: 'right',
50+
},
51+
{
52+
href: 'https://github.com/xrobot-org/xrobot-org.github.io',
53+
label: 'GitHub',
54+
position: 'right',
55+
},
56+
],
57+
},
58+
footer: {
59+
style: 'dark',
60+
copyright: `Copyright © ${new Date().getFullYear()} XRobot`,
61+
},
62+
},
3463
};

0 commit comments

Comments
 (0)