This is an automated email from the ASF dual-hosted git repository.

liyang pushed a commit to branch doc5.0
in repository https://gitbox.apache.org/repos/asf/kylin.git

commit 6a4dbea91b7408fdab1ab298a0100dc0cde97b5a
Author: jlf <1251489...@qq.com>
AuthorDate: Tue Oct 22 17:07:49 2024 +0800

    remove archive
---
 website/docusaurus.config.ts | 56 ++++++++++++++++++++++----------------------
 1 file changed, 28 insertions(+), 28 deletions(-)

diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts
index 98da9bf209..64befd82b7 100644
--- a/website/docusaurus.config.ts
+++ b/website/docusaurus.config.ts
@@ -8,16 +8,16 @@ import {themes, type PrismTheme} from 'prism-react-renderer';
 const lightCodeTheme = themes.github
 
 const ArchivedVersionsDropdownItems = Object.entries(VersionsArchived).splice(
-    0,
-    5,
+  0,
+  5,
 );
 
 function isPrerelease(version: string) {
   return (
-      version.includes('-') ||
-      version.includes('alpha') ||
-      version.includes('beta') ||
-      version.includes('rc')
+    version.includes('-') ||
+    version.includes('alpha') ||
+    version.includes('beta') ||
+    version.includes('rc')
   );
 }
 
@@ -59,7 +59,7 @@ const config = {
   // If you aren't using GitHub pages, you don't need these.
   organizationName: 'apache', // Usually your GitHub org/user name.
   projectName: 'kylin', // Usually your repo name.
-  deploymentBranch:'kylin5_doc',
+  deploymentBranch: 'kylin5_doc',
 
   // add search plugin
 
@@ -90,10 +90,10 @@ const config = {
     locales: ['en', 'zh-Hans'],
     // path: 'i18n',
     localeConfigs: {
-    //   'en': {
-    //     label: 'English',
-    //     htmlLang: 'en-GB',
-    //   },
+      'en': {
+        label: 'English',
+        htmlLang: 'en-GB',
+      },
       'zh-Hans': {
         label: '简体中文',
         path: 'zh-Hans',
@@ -149,7 +149,7 @@ const config = {
           blogSidebarCount: 20,
           showReadingTime: true,
           readingTime: ({content, frontMatter, defaultReadingTime}) =>
-                      defaultReadingTime({content, options: {wordsPerMinute: 
100}}),
+            defaultReadingTime({content, options: {wordsPerMinute: 100}}),
           // Please change this to your repo.
           // Remove this to remove the "edit this page" links.
           editUrl:
@@ -170,9 +170,9 @@ const config = {
     },
   ],
   themeConfig:
-    /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
+  /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
     ({
-      colorMode:{
+      colorMode: {
         defaultMode: 'light',
         disableSwitch: true,
       },
@@ -188,20 +188,20 @@ const config = {
             position: 'right',
             dropdownActiveClassDisabled: true,
             dropdownItemsAfter: [
-              {
-                type: 'html',
-                value: '<hr class="dropdown-separator">',
-              },
-              ...ArchivedVersionsDropdownItems.map(
-                  ([versionName, versionUrl]) => ({
-                    label: versionName,
-                    href: versionUrl,
-                  }),
-              ),
-              {
-                type: 'html',
-                value: '<hr class="dropdown-separator">',
-              },
+              //   {
+              //     type: 'html',
+              //     value: '<hr class="dropdown-separator">',
+              //   },
+              // ...ArchivedVersionsDropdownItems.map(
+              //   ([versionName, versionUrl]) => ({
+              //     label: versionName,
+              //     href: versionUrl,
+              //   }),
+              // ),
+              // {
+              //   type: 'html',
+              //   value: '<hr class="dropdown-separator">',
+              // },
               {
                 to: 'docs/release_notes',
                 label: 'Release Notes',

Reply via email to