Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the Incubation description #165

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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='https://doris.apache.org/images/asf_logo_apache.svg' />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be more appropriate to upload this image to EventMesh's own site and then use EventMesh's URL?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good spot, thanks.

</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