This is an automated email from the ASF dual-hosted git repository.
shuai pushed a commit to branch build-community
in repository https://gitbox.apache.org/repos/asf/incubator-answer-website.git
The following commit(s) were added to refs/heads/build-community by this push:
new f41d26f9 feat: add edit page url and last updated time
f41d26f9 is described below
commit f41d26f91dfaa280b18472efbef62f39fd7b6155
Author: shuai <[email protected]>
AuthorDate: Wed Nov 22 17:07:17 2023 +0800
feat: add edit page url and last updated time
---
docusaurus.config.js | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/docusaurus.config.js b/docusaurus.config.js
index faf213fd..e6d23cfd 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -163,6 +163,14 @@ const config = {
path: 'community',
routeBasePath: 'community',
sidebarPath: require.resolve('./sidebarsCommunity.js'),
+ editUrl: ({locale, versionDocsDirPath, docPath}) => {
+ if (locale !== 'en') {
+ return `https://crowdin.com/project/answer-website/zh-CN`;
+ }
+ return
`https://github.com/apache/incubator-answer-website/edit/build-community/${versionDocsDirPath}/${docPath}`;
+ },
+ showLastUpdateAuthor: true,
+ showLastUpdateTime: true,
},
],
],