Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dlink
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaowei
dlink
Commits
dfd44396
Unverified
Commit
dfd44396
authored
Aug 02, 2022
by
zhu-mingye
Committed by
GitHub
Aug 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Document-793][doc] docs hotfix (#815)
* docs hotfix
parent
dafa4176
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
docusaurus.config.js
docs/docusaurus.config.js
+12
-12
No files found.
docs/docusaurus.config.js
View file @
dfd44396
...
...
@@ -37,7 +37,7 @@ const config = {
onDuplicateRoutes
:
'warn'
,
// Docusaurus 在检测到重复的路由时的行为 | Behavior of docusaurus when duplicate routes are detected -> 类型:'ignore' | 'log' | 'warn' | 'error' | 'throw'
favicon
:
'dinky_logo.svg'
,
// 左侧logo | left logo
organizationName
:
'DataLinkDC'
,
// 拥有此源的 GitHub 用户或组织。 用于部署命令。 | The GitHub user or organization that owns this source. Command for deployment.
projectName
:
'd
inky-website
'
,
// GitHub 源的名称。 用于部署命令。 | The name of the GitHub repository. Command for deployment.
projectName
:
'd
link
'
,
// GitHub 源的名称。 用于部署命令。 | The name of the GitHub repository. Command for deployment.
deploymentBranch
:
'main'
,
// GitHub Pages 的部署分支。 用于部署命令。 | The branch to deploy to GitHub Pages. Command for deployment.
customFields
:{
// 自定义字段 | Custom fields
structTitle
:
'Dinky'
,
...
...
@@ -71,9 +71,9 @@ const config = {
// Please change this to your repo.
editUrl
:
({
locale
,
versionDocsDirPath
,
docPath
})
=>
{
if
(
locale
!==
'zh-cn'
)
{
return
`https://github.com/DataLinkDC/d
inky-website/tree/master
/i18n/
${
locale
}
/
${
docPath
}
`
;
return
`https://github.com/DataLinkDC/d
link/tree/master/docs
/i18n/
${
locale
}
/
${
docPath
}
`
;
}
return
`https://github.com/DataLinkDC/d
inky-website/tree/master
/
${
versionDocsDirPath
}
/
${
docPath
}
`
;
return
`https://github.com/DataLinkDC/d
link/tree/master/docs
/
${
versionDocsDirPath
}
/
${
docPath
}
`
;
},
},
blog
:
{
...
...
@@ -90,12 +90,12 @@ const config = {
readingTime
:
({
content
,
frontMatter
,
defaultReadingTime
})
=>
defaultReadingTime
({
content
,
options
:
{
wordsPerMinute
:
300
}}),
// 阅读时间 md文件中如果不写 date: 此属性 默认是当前时间
// Please change this to your repo.
editUrl
:
({
locale
,
versionDocsDirPath
,
docPath
})
=>
{
// 博客页面修改编辑按钮
if
(
locale
!==
'zh-cn'
)
{
return
`https://github.com/DataLinkDC/dinky-website/tree/master
/i18n/
${
locale
}
/
${
docPath
}
`
;
}
return
`https://github.com/DataLinkDC/dinky-website/tree/master
/
${
versionDocsDirPath
}
/
${
docPath
}
`
;
},
//
editUrl: ({locale, versionDocsDirPath, docPath}) => { // 博客页面修改编辑按钮
//
if (locale !== 'zh-cn') {
// return `https://github.com/DataLinkDC/dlink/tree/master/docs
/i18n/${locale}/${docPath}`;
//
}
// return `https://github.com/DataLinkDC/dlink/tree/master/docs
/${versionDocsDirPath}/${docPath}`;
//
},
},
theme
:
{
customCss
:
require
.
resolve
(
'./src/css/custom.css'
),
// 自定义css文件
...
...
@@ -270,10 +270,10 @@ const config = {
routeBasePath
:
'download'
,
editUrl
:
({
locale
,
versionDocsDirPath
,
docPath
})
=>
{
if
(
locale
!==
'zh-cn'
)
{
return
`https://github.com/DataLinkDC/d
inky-website/tree/master
/i18n/
${
locale
}
/
${
docPath
}
`
;
return
`https://github.com/DataLinkDC/d
link/tree/master/docs
/i18n/
${
locale
}
/
${
docPath
}
`
;
}
return
`https://github.com/DataLinkDC/d
inky-website/tree/master
/
${
versionDocsDirPath
}
/
${
docPath
}
`
;
},
return
`https://github.com/DataLinkDC/d
link/tree/master/docs
/
${
versionDocsDirPath
}
/
${
docPath
}
`
;
},
sidebarPath
:
require
.
resolve
(
'./sidebars.js'
),
},
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment