From 154b6faddaa89431ea7cb2c228a0a955aa0d79e7 Mon Sep 17 00:00:00 2001
From: SUN <350916525@qq.com>
Date: Sun, 24 Dec 2023 17:09:21 +0800
Subject: [PATCH 1/2] remove incubation from index page
---
src/theme/Footer/index.tsx | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/theme/Footer/index.tsx b/src/theme/Footer/index.tsx
index 4a7067fc46..12cc52a2ef 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,
@@ -108,7 +107,6 @@ function Footer(): JSX.Element | null {
))}
)}
-
{(logo || copyright) && (
{logo && (logo.src || logo.srcDark) && (
From 4f4dd435be106deb160dae8e887086d31b46b415 Mon Sep 17 00:00:00 2001
From: SUN <350916525@qq.com>
Date: Mon, 25 Dec 2023 12:21:41 +0800
Subject: [PATCH 2/2] 1. remove Incubation component 2. add Apache logo on page
footer
---
docusaurus.config.js | 5 +--
src/components/Incubation.module.css | 5 ---
src/components/Incubation.tsx | 22 -----------
src/theme/Footer/index.tsx | 59 +++++++++++++++-------------
4 files changed, 34 insertions(+), 57 deletions(-)
delete mode 100644 src/components/Incubation.module.css
delete mode 100644 src/components/Incubation.tsx
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 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 12cc52a2ef..405e235c3d 100644
--- a/src/theme/Footer/index.tsx
+++ b/src/theme/Footer/index.tsx
@@ -77,34 +77,39 @@ 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) && (