This is an automated email from the ASF dual-hosted git repository.
xushiyan pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/hudi.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 0bacafe9d175 fix: consolidate ecosystem navbar items (#14343)
0bacafe9d175 is described below
commit 0bacafe9d17573d92e703b5146dca153c9122db6
Author: pintusoliya <[email protected]>
AuthorDate: Tue Nov 25 05:45:48 2025 +0530
fix: consolidate ecosystem navbar items (#14343)
---
website/constants.js | 2 +-
website/docusaurus.config.js | 45 +++++++++++++++----------
website/sidebars.js | 4 +--
website/sidebarsCommunity.js | 26 ++++++++++++--
website/src/components/GetInvolvedGrid/index.js | 3 +-
website/src/pages/slack.js | 7 ++--
6 files changed, 59 insertions(+), 28 deletions(-)
diff --git a/website/constants.js b/website/constants.js
index 517e392a2f7f..5c9e7e74a129 100644
--- a/website/constants.js
+++ b/website/constants.js
@@ -1,3 +1,3 @@
module.exports = {
- slackUrl:
"https://join.slack.com/t/apache-hudi/shared_invite/zt-33fabmxb7-Q7QSUtNOHYCwUdYM8LbauA"
+ originalSlackUrl:
'https://join.slack.com/t/apache-hudi/shared_invite/zt-33fabmxb7-Q7QSUtNOHYCwUdYM8LbauA',
}
diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js
index 5064dc99c2e6..df0153f473ba 100644
--- a/website/docusaurus.config.js
+++ b/website/docusaurus.config.js
@@ -1,6 +1,6 @@
const { themes } = require("prism-react-renderer");
const versions = require("./versions.json");
-const { slackUrl } = require('./constants');
+const { originalSlackUrl } = require('./constants');
const allDocHomesPaths = [
"/docs/",
"/docs/next/",
@@ -38,7 +38,7 @@ module.exports = {
"CDC and indexes"
],
},
- slackUrl: slackUrl,
+ slackUrl: originalSlackUrl,
},
plugins: [
[
@@ -266,15 +266,15 @@ module.exports = {
},
{
label: 'Slack',
- href: slackUrl,
+ href: originalSlackUrl,
},
{
- label: 'Linkdin',
- href:
'https://www.linkedin.com/company/apache-hudi/?viewAsMember=true',
+ label: 'LinkedIn',
+ href: 'https://www.linkedin.com/company/apache-hudi/',
},
{
- label: 'Youtube',
- href: 'https://www.youtube.com/channel/UCs7AhE0BWaEPZSChrBR-Muw',
+ label: 'YouTube',
+ href: 'https://www.youtube.com/@apachehudi',
},
{
label: 'X',
@@ -282,9 +282,24 @@ module.exports = {
},
],
},
- { to: "/ecosystem", label: "Ecosystem", position: "left" },
- { to: "/powered-by", label: "Who's Using", position: "left" },
- { to: "/roadmap", label: "Roadmap", position: "left" },
+ {
+ label: "Ecosystem",
+ position: "left",
+ items: [
+ {
+ label: "Adopters",
+ to: "/powered-by",
+ },
+ {
+ label: "Roadmap",
+ to: "/roadmap",
+ },
+ {
+ label: "Integrations",
+ to: "/ecosystem",
+ },
+ ],
+ },
{ to: "/releases/download", label: "Download", position: "left" },
],
},
@@ -315,7 +330,7 @@ module.exports = {
to: "/releases/download",
},
{
- label: "Who's Using",
+ label: "Adopters",
to: "powered-by",
},
],
@@ -391,7 +406,7 @@ module.exports = {
},
{
label: "Slack",
- href: slackUrl,
+ href: originalSlackUrl,
},
{
label: "GitHub",
@@ -583,9 +598,5 @@ module.exports = {
"data-deep-thinking-button-active-text-color": "#FFFFFF",
async: true,
}
- ],
- stylesheets: [
-
"https://fonts.googleapis.com/css?family=Comfortaa|Ubuntu|Roboto|Source+Code+Pro",
- "https://at-ui.github.io/feather-font/css/iconfont.css"
- ],
+ ]
};
diff --git a/website/sidebars.js b/website/sidebars.js
index 31f7afd719b5..4f0dfac146e8 100644
--- a/website/sidebars.js
+++ b/website/sidebars.js
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
-const { slackUrl } = require('./constants');
+const { originalSlackUrl } = require('./constants');
module.exports = {
docs: [
{
@@ -152,7 +152,7 @@ module.exports = {
{
type: 'link',
label: 'Chat with us on Slack',
- href: slackUrl
+ href: originalSlackUrl
},
],
};
diff --git a/website/sidebarsCommunity.js b/website/sidebarsCommunity.js
index f6d15fa9f883..a574789f1c17 100644
--- a/website/sidebarsCommunity.js
+++ b/website/sidebarsCommunity.js
@@ -8,7 +8,7 @@
Create as many sidebars as you want.
*/
-const { slackUrl } = require('./constants');
+const { originalSlackUrl } = require('./constants');
module.exports = {
community: [
@@ -18,8 +18,28 @@ module.exports = {
},
{
type: 'link',
- label: 'Join Our Slack Space',
- href: slackUrl,
+ label: 'Github',
+ href: 'https://github.com/apache/hudi',
+ },
+ {
+ type: 'link',
+ label: 'Slack',
+ href: originalSlackUrl,
+ },
+ {
+ type: 'link',
+ label: 'LinkedIn',
+ href: 'https://www.linkedin.com/company/apache-hudi/',
+ },
+ {
+ type: 'link',
+ label: 'YouTube',
+ href: 'https://www.youtube.com/@apachehudi',
+ },
+ {
+ type: 'link',
+ label: 'X',
+ href: 'https://x.com/ApacheHudi',
},
],
};
diff --git a/website/src/components/GetInvolvedGrid/index.js
b/website/src/components/GetInvolvedGrid/index.js
index 7cf7a69caf3e..a6454588ccd5 100644
--- a/website/src/components/GetInvolvedGrid/index.js
+++ b/website/src/components/GetInvolvedGrid/index.js
@@ -1,6 +1,7 @@
import React from 'react';
import styles from './styles.module.css';
import Title from "@site/src/components/Title";
+import { originalSlackUrl } from '../../../constants';
const GetInvolvedGrid = () => {
const data = [
@@ -43,7 +44,7 @@ const GetInvolvedGrid = () => {
title: 'For quick pings & 1-1 chats',
content: (
<>
- Join our <a
href="https://hudi.apache.org/community/join-slack">Slack group</a>. Or drop an
email to{' '}
+ Join our <a href={originalSlackUrl}>Slack space</a>. Or drop an
email to{' '}
<a href="mailto:[email protected]">[email protected]</a>.
</>
),
diff --git a/website/src/pages/slack.js b/website/src/pages/slack.js
index 687e88effbe4..dfd0d0a77d5d 100644
--- a/website/src/pages/slack.js
+++ b/website/src/pages/slack.js
@@ -1,10 +1,9 @@
import React, { useEffect } from 'react';
-import { Redirect } from '@docusaurus/router';
-import { slackUrl } from '../../constants';
+import { originalSlackUrl } from '../../constants';
export default function SlackRedirect() {
useEffect(() => {
- window.location.href = slackUrl;
+ window.location.href = originalSlackUrl;
}, []);
return <p>Redirecting to Slack...</p>;
-}
\ No newline at end of file
+}