Skip to content

Commit

Permalink
Fixes #162 Remove the Incubation description (#167)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
SLSJL and SUN authored Dec 26, 2023
1 parent 3222456 commit 3a4ecc2
Show file tree
Hide file tree
Showing 5 changed files with 244 additions and 59 deletions.
5 changes: 2 additions & 3 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
5 changes: 0 additions & 5 deletions src/components/Incubation.module.css

This file was deleted.

22 changes: 0 additions & 22 deletions src/components/Incubation.tsx

This file was deleted.

61 changes: 32 additions & 29 deletions src/theme/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -78,37 +77,41 @@ function Footer(): JSX.Element | null {
<div className="container">
{links && links.length > 0 && (
<div className="row footer__links">
{links.map((linkItem, i) => (
<div key={i} className="col footer__col">
{linkItem.title != null ? (
<div className="footer__title">{linkItem.title}</div>
) : null}
{linkItem.items != null
&& Array.isArray(linkItem.items)
&& linkItem.items.length > 0 ? (
<ul className="footer__items">
{linkItem.items.map((item, key) => (item.html ? (
<li
key={key}
className="footer__item"
// Developer provided the HTML, so assume it's safe.
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{
__html: item.html,
}}
/>
) : (
<li key={item.href || item.to} className="footer__item">
<FooterLink {...item} />
</li>
)))}
</ul>
<div className="col footer__col">
<img src={'images/asf_logo.svg'} />
</div>
{[{logoSrc: ''},...links].map((linkItem, i) => {
return (
<div key={i} className="col footer__col">
{linkItem.title != null ? (
<div className="footer__title">{linkItem.title}</div>
) : null}
</div>
))}
{linkItem.items != null
&& Array.isArray(linkItem.items)
&& linkItem.items.length > 0 ? (
<ul className="footer__items">
{linkItem.items.map((item, key) => (item.html ? (
<li
key={key}
className="footer__item"
// Developer provided the HTML, so assume it's safe.
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{
__html: item.html,
}}
/>
) : (
<li key={item.href || item.to} className="footer__item">
<FooterLink {...item} />
</li>
)))}
</ul>
) : null}
</div>
)
})}
</div>
)}
<Incubation />
{(logo || copyright) && (
<div className="footer__bottom text--center">
{logo && (logo.src || logo.srcDark) && (
Expand Down
Loading

0 comments on commit 3a4ecc2

Please sign in to comment.