Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
babyfish-ct committed Aug 5, 2024
2 parents 3e1cc0e + e2b25f3 commit fbc7d92
Show file tree
Hide file tree
Showing 6 changed files with 769 additions and 3 deletions.
25 changes: 25 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const config = {
}
return `https://github.com/babyfish-ct/jimmer-doc/edit/main/docs/${docPath}`
},
showLastUpdateTime: true,
},
// blog: {
// showReadingTime: true,
Expand All @@ -68,6 +69,25 @@ const config = {
],
],

plugins:[
[
'content-docs',
{
id: 'faq',
path: 'faq',
routeBasePath: 'faq',
sidebarPath: require.resolve('./sidebars-faq.js'),
showLastUpdateTime: true,
editUrl: ({locale, versionDocsDirPath, docPath}) => {
if (locale == 'zh') {
return `https://github.com/babyfish-ct/jimmer-doc/edit/main/i18n/zh/docusaurus-plugin-content-faq/current/${docPath}`
}
return `https://github.com/babyfish-ct/jimmer-doc/edit/main/faq/${docPath}`
},
},
]
],

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
Expand All @@ -84,6 +104,11 @@ const config = {
position: 'left',
label: 'View more',
},
{
to: '/faq',
position: 'left',
label: 'FAQ',
},
{
type: 'localeDropdown',
position: 'left',
Expand Down
Loading

0 comments on commit fbc7d92

Please sign in to comment.