This is an automated email from the ASF dual-hosted git repository.
tison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
The following commit(s) were added to refs/heads/main by this push:
new 81e912fce51 [misc] Multiple improvements on Learn page (#634)
81e912fce51 is described below
commit 81e912fce51025a0d909f892b484091d61cbabf9
Author: tison <[email protected]>
AuthorDate: Mon Jul 10 12:58:03 2023 +0800
[misc] Multiple improvements on Learn page (#634)
* [feat] list all posts in the sidebar
Signed-off-by: tison <[email protected]>
* [cleanup] books now has their own page
Signed-off-by: tison <[email protected]>
* [cleanup] tidy resources data
Signed-off-by: tison <[email protected]>
* [refactor] Remove All from Resources to align with Events
Signed-off-by: tison <[email protected]>
---------
Signed-off-by: tison <[email protected]>
---
data/resources.ts | 149 +++++++++------------
docusaurus.config.js | 2 +
.../pages/ResourcesPage/ResourcesPage.tsx | 8 +-
src/pages/resources.tsx | 1 -
4 files changed, 71 insertions(+), 89 deletions(-)
diff --git a/data/resources.ts b/data/resources.ts
index a6bb42f70c2..a99fb6d84a9 100644
--- a/data/resources.ts
+++ b/data/resources.ts
@@ -167,82 +167,8 @@ export const resources: Record<Category, Resource[]> = {
],
- /******************************
- * Presentations
- *
- ******************************/
- presentations: [
- {
- forum: 'P99Conf',
- forum_link: 'https://www.p99conf.io/',
- presenter: 'Karthik Ramasamy',
- date: 'Oct 2021',
- title: "Scaling Apache Pulsar to 10 PB/day",
- link: 'https://www.youtube.com/watch?v=x76sX4BU2mA'
- },
- {
- forum: 'Apache Pulsar Summit',
- forum_link: 'https://pulsar-summit.org/',
- presenter: 'Many',
- date: 'Oct 2021',
- title: "Apache Pulsar Summit Europe 2021 Playlist",
- link:
'https://www.youtube.com/playlist?list=PLqRma1oIkcWh7zes7mNeTUCr2iU-2C1jB'
- },
-
- {
- forum: 'ApacheCon @Home 2021',
- forum_link: 'https://www.apachecon.com/acah2021/',
- presenter: 'Many',
- date: 'Sept 2021',
- title: "Apache Pulsar Playlist",
- link:
'https://www.youtube.com/watch?v=igwxegspSGw&list=PLIt9PL1-3shvC0dGjaPyd0Rqfg1_PZLvS'
- },
- {
- forum: 'Apache Pulsar Neighborhood YouTube',
- forum_link: 'https://www.youtube.com/apachepulsarneighborhood',
- presenter: 'Enrico Olivelli',
- date: 'Sept 2021',
- title: "Apache Pulsar Deep Dive- an End-to-end view of the Data Flow",
- link: 'https://www.youtube.com/watch?v=oLXCCCGsrWM'
- },
- {
- forum: 'Apache Pulsar Neighborhood YouTube',
- forum_link: 'https://www.youtube.com/apachepulsarneighborhood',
- presenter: 'Simba Khadder',
- date: 'Sept 2021',
- title: "Apache Pulsar and Machine Learning",
- link: 'https://youtu.be/K2WXDwo1y0k'
- },
- {
- forum: 'Apache Pulsar Neighborhood YouTube',
- forum_link: 'https://www.youtube.com/apachepulsarneighborhood',
- presenter: 'Enrico Olivelli',
- date: 'Sept 2021',
- title: "Leveraging Pulsar's Next Gen Streaming Capabilities from a
JavaEE Application",
- link: 'https://www.youtube.com/watch?v=0NA0BIvkQrs'
- },
- {
- forum: 'Devin Bost\'s YouTube',
- forum_link: 'https://www.youtube.com/channel/UCz_Y86AT4G15xU3IojhX2Kw',
- presenter: 'Devin Bost',
- date: 'Aug 2021',
- title: "Streaming Patterns and Best Practices with Apache Pulsar for
Enabling Machine Learning and Analytics",
- link: 'https://www.youtube.com/watch?v=Fdqre_hTnUI'
- },
-
- {
- forum: 'Pulsar Summit NA 2021',
- forum_link: 'https://pulsar-summit.org/',
- presenter: '',
- date: 'June 2021',
- title: "Pulsar Summit NA 2021 Playlist",
- link:
'https://www.youtube.com/watch?v=-Bm1h508oIQ&list=PLqRma1oIkcWjyezVodJHcp8GSypvGuc1C'
- }
- ],
/***************************
* Older Articles
- *
- *
* *************************/
older_articles: [
{
@@ -630,21 +556,78 @@ export const resources: Record<Category, Resource[]> = {
link:
'https://debezium.io/blog/2019/05/23/tutorial-using-debezium-connectors-with-apache-pulsar/',
tags: ''
},
- {
- forum: 'Pulsar in Action',
- forum_link: 'https://www.manning.com/books/pulsar-in-action',
- title: "Pulsar in Action",
- link: 'https://www.manning.com/books/pulsar-in-action',
- tags: ''
- }
-
],
/******************************
* Presentations
- *
******************************/
presentations: [
+ {
+ forum: 'P99Conf',
+ forum_link: 'https://www.p99conf.io/',
+ presenter: 'Karthik Ramasamy',
+ date: 'Oct 2021',
+ title: "Scaling Apache Pulsar to 10 PB/day",
+ link: 'https://www.youtube.com/watch?v=x76sX4BU2mA'
+ },
+ {
+ forum: 'Apache Pulsar Summit',
+ forum_link: 'https://pulsar-summit.org/',
+ presenter: 'Many',
+ date: 'Oct 2021',
+ title: "Apache Pulsar Summit Europe 2021 Playlist",
+ link:
'https://www.youtube.com/playlist?list=PLqRma1oIkcWh7zes7mNeTUCr2iU-2C1jB'
+ },
+
+ {
+ forum: 'ApacheCon @Home 2021',
+ forum_link: 'https://www.apachecon.com/acah2021/',
+ presenter: 'Many',
+ date: 'Sept 2021',
+ title: "Apache Pulsar Playlist",
+ link:
'https://www.youtube.com/watch?v=igwxegspSGw&list=PLIt9PL1-3shvC0dGjaPyd0Rqfg1_PZLvS'
+ },
+ {
+ forum: 'Apache Pulsar Neighborhood YouTube',
+ forum_link: 'https://www.youtube.com/apachepulsarneighborhood',
+ presenter: 'Enrico Olivelli',
+ date: 'Sept 2021',
+ title: "Apache Pulsar Deep Dive- an End-to-end view of the Data Flow",
+ link: 'https://www.youtube.com/watch?v=oLXCCCGsrWM'
+ },
+ {
+ forum: 'Apache Pulsar Neighborhood YouTube',
+ forum_link: 'https://www.youtube.com/apachepulsarneighborhood',
+ presenter: 'Simba Khadder',
+ date: 'Sept 2021',
+ title: "Apache Pulsar and Machine Learning",
+ link: 'https://youtu.be/K2WXDwo1y0k'
+ },
+ {
+ forum: 'Apache Pulsar Neighborhood YouTube',
+ forum_link: 'https://www.youtube.com/apachepulsarneighborhood',
+ presenter: 'Enrico Olivelli',
+ date: 'Sept 2021',
+ title: "Leveraging Pulsar's Next Gen Streaming Capabilities from a
JavaEE Application",
+ link: 'https://www.youtube.com/watch?v=0NA0BIvkQrs'
+ },
+ {
+ forum: 'Devin Bost\'s YouTube',
+ forum_link: 'https://www.youtube.com/channel/UCz_Y86AT4G15xU3IojhX2Kw',
+ presenter: 'Devin Bost',
+ date: 'Aug 2021',
+ title: "Streaming Patterns and Best Practices with Apache Pulsar for
Enabling Machine Learning and Analytics",
+ link: 'https://www.youtube.com/watch?v=Fdqre_hTnUI'
+ },
+
+ {
+ forum: 'Pulsar Summit NA 2021',
+ forum_link: 'https://pulsar-summit.org/',
+ presenter: '',
+ date: 'June 2021',
+ title: "Pulsar Summit NA 2021 Playlist",
+ link:
'https://www.youtube.com/watch?v=-Bm1h508oIQ&list=PLqRma1oIkcWjyezVodJHcp8GSypvGuc1C'
+ },
{
forum: 'Apache Pulsar Neighborhood YouTube',
forum_link: 'https://www.youtube.com/apachepulsarneighborhood',
diff --git a/docusaurus.config.js b/docusaurus.config.js
index 95dfa48e826..632307c5bfb 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -399,6 +399,8 @@ module.exports = {
onlyIncludeVersions: buildVersions || ["current"],
},
blog: {
+ blogSidebarTitle: 'All posts',
+ blogSidebarCount: 'ALL',
showReadingTime: true,
editUrl: `${githubSiteUrl}/edit/main/`,
},
diff --git a/src/components/pages/ResourcesPage/ResourcesPage.tsx
b/src/components/pages/ResourcesPage/ResourcesPage.tsx
index 9938042f219..746cab2e359 100644
--- a/src/components/pages/ResourcesPage/ResourcesPage.tsx
+++ b/src/components/pages/ResourcesPage/ResourcesPage.tsx
@@ -7,12 +7,11 @@ import s from './ResourcesPage.module.css';
import Button from "@site/src/components/ui/Button/Button";
import Input from "@site/src/components/ui/Input/Input";
-type CategoryFilterOption = 'any' | data.Category;
-const categoryFilterOptions = ['any', ...data.categories] as const;
+const categoryFilterOptions = [...data.categories] as const;
const CaseStudiesPage: React.FC = () => {
const [searchQuery, setSearchQuery] = useState('');
- const [categoryFilter, setCategoryFilter] =
React.useState<CategoryFilterOption>('any');
+ const [categoryFilter, setCategoryFilter] =
React.useState<data.Category>(data.categories[0]);
return (
<Layout
@@ -39,7 +38,7 @@ const CaseStudiesPage: React.FC = () => {
key={category}
variant={categoryFilter === category ? 'action' :
'regular'}
onClick={() => setCategoryFilter(category)}
- title={category === 'any' ? 'All' :
data.categoryLabels[category]}
+ title={data.categoryLabels[category]}
/>
);
})}
@@ -50,7 +49,6 @@ const CaseStudiesPage: React.FC = () => {
</div>
<div>
- {categoryFilter === 'any' && <Cards search={searchQuery}
resources={Object.values(data.resources).flat()} />}
{data.categories.map((category) => {
if (categoryFilter === category) {
return <Cards key={category} search={searchQuery}
resources={data.resources[category]} />
diff --git a/src/pages/resources.tsx b/src/pages/resources.tsx
index 43046651932..0963472f616 100644
--- a/src/pages/resources.tsx
+++ b/src/pages/resources.tsx
@@ -1,3 +1,2 @@
import ResourcesPage from
'@site/src/components/pages/ResourcesPage/ResourcesPage';
-
export default ResourcesPage;