Skip to content

Commit a4ac56b

Browse files
authored
Update docusaurus.config.js
1 parent 54fa5f4 commit a4ac56b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

doc/docusaurus.config.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,11 @@ const config = {
4848
({
4949
docs: {
5050
sidebarPath: './sidebars.js',
51+
routeBasePath: '/', // 关键修改:让文档在 /docs/ 的根路径
5152
// Please change this to your repo.
5253
// Remove this to remove the "edit this page" links.
5354
editUrl:
54-
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
55+
'https://github.com/second-state/echokit/tree/main/doc/',
5556
},
5657
blog: {
5758
showReadingTime: true,
@@ -62,11 +63,11 @@ const config = {
6263
// Please change this to your repo.
6364
// Remove this to remove the "edit this page" links.
6465
editUrl:
65-
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
66+
'https://github.com/second-state/echokit/tree/main/doc/',
6667
// Useful options to enforce blogging best practices
6768
onInlineTags: 'warn',
6869
onInlineAuthors: 'ignore',
69-
onUntruncatedBlogPosts: 'warn',
70+
onUntruncatedBlogPosts: 'ignore', // 修改:忽略截断警告
7071
},
7172
theme: {
7273
customCss: './src/css/custom.css',
@@ -109,7 +110,7 @@ const config = {
109110
items: [
110111
{
111112
label: 'Tutorial',
112-
to: '/intro',
113+
to: '/intro', // 修改:去掉 /docs 前缀
113114
},
114115
],
115116
},

0 commit comments

Comments
 (0)