Skip to content

Commit

Permalink
1. remove Incubation component
Browse files Browse the repository at this point in the history
2. add Apache logo on page footer
  • Loading branch information
SUN committed Dec 25, 2023
1 parent 154b6fa commit 4f4dd43
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 57 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.

59 changes: 32 additions & 27 deletions src/theme/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,34 +77,39 @@ 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' />
</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>
)}
{(logo || copyright) && (
Expand Down

0 comments on commit 4f4dd43

Please sign in to comment.