Skip to content

Commit

Permalink
feat: add kcl cncf sandbox info and the linux foundation copyright.
Browse files Browse the repository at this point in the history
  • Loading branch information
Peefy committed Sep 22, 2023
1 parent 1c53a19 commit bcea46f
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 32 deletions.
61 changes: 34 additions & 27 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ const config = {
i18n: {
defaultLocale: 'en',
locales: ['en', 'zh-CN'],
localeConfigs: {
en: {
label: 'English',
},
"zh-CN": {
label: '简体中文',
},
},
},
scripts: [],

Expand Down Expand Up @@ -234,7 +242,6 @@ const config = {
].filter(item => true),
},
footer: {
style: 'dark',
links: [
{
title: 'Document',
Expand Down Expand Up @@ -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: `
<br />
<br />
<strong>© KCL Authors ${new Date().getFullYear()} | Documentation Distributed under <a href="https://creativecommons.org/licenses/by/4.0">CC-BY-4.0</a> </strong>
<br />
<br />
© ${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 <a href="https://www.linuxfoundation.org/trademark-usage/"> Trademark Usage</a> page.
`,
},
prism: {
theme: lightCodeTheme,
Expand All @@ -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;
9 changes: 9 additions & 0 deletions i18n/en/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
4 changes: 0 additions & 4 deletions i18n/en/docusaurus-theme-classic/footer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 9 additions & 0 deletions i18n/zh-CN/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "云原生计算基金会"
},
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function CNCFSection() {
<h2 className={clsx(
"hero__subtitle", styles.poppinsFont,
)} >
<Translate>KCL is in</Translate> <Link to="https://cncf.io/"><Translate>Cloud Native Computing Foundation</Translate></Link> <Translate>landscape</Translate>
<Translate>We are a </Translate> <Link to="https://cncf.io/"><Translate>Cloud Native Computing Foundation</Translate></Link> <Translate>sandbox project</Translate>
</h2>
<br />
<div>
Expand Down

0 comments on commit bcea46f

Please sign in to comment.