casionone commented on code in PR #362:
URL: 
https://github.com/apache/incubator-linkis-website/pull/362#discussion_r903419015


##########
src/pages/index.jsx:
##########
@@ -8,6 +8,12 @@ import useIsBrowser from '@docusaurus/useIsBrowser';
 export default function() {
   const isBrowser = useIsBrowser();
   const {siteConfig} = useDocusaurusContext();
+  const {globalData} = useDocusaurusContext();
+
+  globalData['docusaurus-plugin-content-docs'].default.versions[1].label = 
'1.1.1';
+  globalData['docusaurus-plugin-content-docs'].default.versions[1].isLast = 
false;
+  globalData['docusaurus-plugin-content-docs'].default.versions[0].isLast = 
true;
+

Review Comment:
   Each new document version needs to modify this configuration,
   Is it possible to automatically identify here.
   About shenyu-website, refer  it achieve? 
   
https://github.com/apache/incubator-shenyu-website/blob/main/docusaurus.config.js
 
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to