From 3a4ecc2835ebc04e8781b425056424da1e082bdc Mon Sep 17 00:00:00 2001 From: SUN Date: Tue, 26 Dec 2023 14:23:55 +0800 Subject: [PATCH] Fixes #162 Remove the Incubation description (#167) * remove incubation from index page * 1. remove Incubation component 2. add Apache logo on page footer * add Apache logo to project --------- Co-authored-by: SUN <350916525@qq.com> --- docusaurus.config.js | 5 +- src/components/Incubation.module.css | 5 - src/components/Incubation.tsx | 22 --- src/theme/Footer/index.tsx | 61 ++++---- static/images/asf_logo.svg | 210 +++++++++++++++++++++++++++ 5 files changed, 244 insertions(+), 59 deletions(-) delete mode 100644 src/components/Incubation.module.css delete mode 100644 src/components/Incubation.tsx create mode 100644 static/images/asf_logo.svg diff --git a/docusaurus.config.js b/docusaurus.config.js index 1d3b8d4d74..ff77e1454a 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -168,9 +168,8 @@ module.exports = { ], copyright: ` Copyright © ${new Date().getFullYear()} The Apache Software Foundation. - Apache EventMesh, Apache Incubator, EventMesh, Apache, the Apache feather logo, - the Apache EventMesh logo and the Apache Incubator project logo - are trademarks of The Apache Software Foundation. + Apache EventMesh, EventMesh, Apache, the Apache feather logo, + and the Apache EventMesh logo are trademarks of The Apache Software Foundation. `, }, docs: { diff --git a/src/components/Incubation.module.css b/src/components/Incubation.module.css deleted file mode 100644 index e8227aa21a..0000000000 --- a/src/components/Incubation.module.css +++ /dev/null @@ -1,5 +0,0 @@ -.subtitle { - opacity: 0.6; - margin-top: 1rem; - margin-bottom: 2rem; -} diff --git a/src/components/Incubation.tsx b/src/components/Incubation.tsx deleted file mode 100644 index 53dfeb79f9..0000000000 --- a/src/components/Incubation.tsx +++ /dev/null @@ -1,22 +0,0 @@ -/* eslint-disable max-len */ -import React from 'react'; -import styles from './Incubation.module.css'; -import IncubatorLogo from '../../static/images/incubator-logo.png'; - -const Incubation = (): JSX.Element => ( -
- Apache Incubator Logo - -

- Apache EventMesh is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF. -

-
-); - -export default Incubation; diff --git a/src/theme/Footer/index.tsx b/src/theme/Footer/index.tsx index 4a7067fc46..c6bd32c25c 100644 --- a/src/theme/Footer/index.tsx +++ b/src/theme/Footer/index.tsx @@ -14,7 +14,6 @@ import useBaseUrl from '@docusaurus/useBaseUrl'; import isInternalUrl from '@docusaurus/isInternalUrl'; import ThemedImage, { Props as ThemedImageProps } from '@theme/ThemedImage'; import styles from './styles.module.css'; -import Incubation from '../../components/Incubation'; function FooterLink({ to, @@ -78,37 +77,41 @@ function Footer(): JSX.Element | null {
{links && links.length > 0 && (
- {links.map((linkItem, i) => ( -
- {linkItem.title != null ? ( -
{linkItem.title}
- ) : null} - {linkItem.items != null - && Array.isArray(linkItem.items) - && linkItem.items.length > 0 ? ( -
    - {linkItem.items.map((item, key) => (item.html ? ( -
  • - ) : ( -
  • - -
  • - )))} -
+
+ +
+ {[{logoSrc: ''},...links].map((linkItem, i) => { + return ( +
+ {linkItem.title != null ? ( +
{linkItem.title}
) : null} -
- ))} + {linkItem.items != null + && Array.isArray(linkItem.items) + && linkItem.items.length > 0 ? ( +
    + {linkItem.items.map((item, key) => (item.html ? ( +
  • + ) : ( +
  • + +
  • + )))} +
+ ) : null} +
+ ) + })}
)} - {(logo || copyright) && (
{logo && (logo.src || logo.srcDark) && ( diff --git a/static/images/asf_logo.svg b/static/images/asf_logo.svg new file mode 100644 index 0000000000..620694c524 --- /dev/null +++ b/static/images/asf_logo.svg @@ -0,0 +1,210 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +