From bcea46f4d9229211bd49edb4d7f51c155fc83195 Mon Sep 17 00:00:00 2001 From: peefy Date: Fri, 22 Sep 2023 19:10:12 +0800 Subject: [PATCH] feat: add kcl cncf sandbox info and the linux foundation copyright. --- docusaurus.config.js | 61 +++++++++++--------- i18n/en/code.json | 9 +++ i18n/en/docusaurus-theme-classic/footer.json | 4 -- i18n/zh-CN/code.json | 9 +++ src/pages/index.tsx | 2 +- 5 files changed, 53 insertions(+), 32 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 05331227..8217d350 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -23,6 +23,14 @@ const config = { i18n: { defaultLocale: 'en', locales: ['en', 'zh-CN'], + localeConfigs: { + en: { + label: 'English', + }, + "zh-CN": { + label: '简体中文', + }, + }, }, scripts: [], @@ -234,7 +242,6 @@ const config = { ].filter(item => true), }, footer: { - style: 'dark', links: [ { title: 'Document', @@ -288,14 +295,14 @@ const config = { ], }, ], - logo: { - alt: 'AntGroup Open Source Logo', - src: 'img/oss_logo.svg', - width: 160, - height: 51, - href: 'https://opensource.antgroup.com/', - }, - copyright: `Copyright © ${new Date().getFullYear()} KCL Authors`, + copyright: ` +
+
+ © KCL Authors ${new Date().getFullYear()} | Documentation Distributed under CC-BY-4.0 +
+
+ © ${new Date().getFullYear()} The Linux Foundation. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our Trademark Usage page. + `, }, prism: { theme: lightCodeTheme, @@ -307,26 +314,26 @@ const config = { } } }), - plugins: [ - [ - '@docusaurus/plugin-google-gtag', - { - trackingID: 'G-MZD1X1PB2Q', - anonymizeIP: true, - }, - ], - async function myPlugin(context, options) { - return { - name: "docusaurus-tailwindcss", - configurePostCss(postcssOptions) { - // Appends TailwindCSS and AutoPrefixer. - postcssOptions.plugins.push(require("tailwindcss")); - postcssOptions.plugins.push(require("autoprefixer")); - return postcssOptions; - }, - }; + plugins: [ + [ + '@docusaurus/plugin-google-gtag', + { + trackingID: 'G-MZD1X1PB2Q', + anonymizeIP: true, }, ], + async function myPlugin(context, options) { + return { + name: "docusaurus-tailwindcss", + configurePostCss(postcssOptions) { + // Appends TailwindCSS and AutoPrefixer. + postcssOptions.plugins.push(require("tailwindcss")); + postcssOptions.plugins.push(require("autoprefixer")); + return postcssOptions; + }, + }; + }, + ], }; module.exports = config; diff --git a/i18n/en/code.json b/i18n/en/code.json index bddeb5f9..eaa76aa7 100644 --- a/i18n/en/code.json +++ b/i18n/en/code.json @@ -497,6 +497,15 @@ "KCL is in": { "message": "KCL is in" }, + "KCL is a": { + "message": "KCL is a" + }, + "We are a": { + "message": "We are a" + }, + "sandbox project": { + "message": "sandbox project" + }, "Cloud Native Computing Foundation": { "message": "Cloud Native Computing Foundation" }, diff --git a/i18n/en/docusaurus-theme-classic/footer.json b/i18n/en/docusaurus-theme-classic/footer.json index ade5679b..4b7c322a 100644 --- a/i18n/en/docusaurus-theme-classic/footer.json +++ b/i18n/en/docusaurus-theme-classic/footer.json @@ -35,10 +35,6 @@ "message": "Changelog", "description": "The label of footer link with label=Changelog linking to /changelog" }, - "copyright": { - "message": "Copyright © 2023 KCL Authors", - "description": "The footer copyright" - }, "link.item.label.User Guide": { "message": "User Guide", "description": "The label of footer link with label=User Guide linking to /docs/user_docs/guides" diff --git a/i18n/zh-CN/code.json b/i18n/zh-CN/code.json index aa2b298b..eb67a798 100644 --- a/i18n/zh-CN/code.json +++ b/i18n/zh-CN/code.json @@ -326,6 +326,15 @@ "KCL is in": { "message": "KCL 已经加入" }, + "KCL is a": { + "message": "KCL 是一个" + }, + "We are a": { + "message": "KCL 是一个" + }, + "sandbox project": { + "message": "沙箱项目" + }, "Cloud Native Computing Foundation": { "message": "云原生计算基金会" }, diff --git a/src/pages/index.tsx b/src/pages/index.tsx index b8e64828..8d65d4fb 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -195,7 +195,7 @@ function CNCFSection() {

- KCL is in Cloud Native Computing Foundation landscape + We are a Cloud Native Computing Foundation sandbox project