From b2bf26460d2e361bccc88697d8b7d203a9772076 Mon Sep 17 00:00:00 2001 From: Chris Bono Date: Thu, 12 Oct 2023 00:29:07 -0500 Subject: [PATCH 1/2] Update related_projects.js * Change 'Spring Pulsar' text to 'Spring for Apache Pulsar' * Put Spring Pulsar and Spring Kafka in 'messaging' category --- src/helpers/related_projects.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/helpers/related_projects.js b/src/helpers/related_projects.js index fff7579..899ede9 100644 --- a/src/helpers/related_projects.js +++ b/src/helpers/related_projects.js @@ -235,9 +235,19 @@ function relatedProjects (categories = [], projectIds = []) { { href: 'https://docs.spring.io/spring-ai/reference/', id: 'ai', text: 'Spring AI' }, { href: 'https://docs.spring.io/spring-cli/reference/', id: 'cli', text: 'Spring CLI' }, { href: 'https://docs.spring.io/spring-graphql/reference/', id: 'graphql', text: 'Spring GraphQL' }, - { href: 'https://docs.spring.io/spring-kafka/reference/', id: 'kafka', text: 'Spring for Apache Kafka' }, + { + href: 'https://docs.spring.io/spring-kafka/reference/', + id: 'kafka', + text: 'Spring for Apache Kafka', + categories: ['messaging'], + }, { href: 'https://docs.spring.io/spring-modulith/reference/', id: 'modulith', text: 'Spring Modulith' }, - { href: 'https://docs.spring.io/spring-pulsar/reference/', id: 'pulsar', text: 'Spring Pulsar' }, + { + href: 'https://docs.spring.io/spring-pulsar/reference/', + id: 'pulsar', + text: 'Spring for Apache Pulsar', + categories: ['messaging'], + }, { href: 'https://docs.spring.io/spring-shell/reference/', id: 'shell', text: 'Spring Shell' }, ] return projectDocumentation.filter( From 7c83cb4fb1473d47cc9390a404d21b4bd87665d1 Mon Sep 17 00:00:00 2001 From: Chris Bono Date: Thu, 12 Oct 2023 00:36:56 -0500 Subject: [PATCH 2/2] Fix formatting --- src/helpers/related_projects.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers/related_projects.js b/src/helpers/related_projects.js index 899ede9..743ebd2 100644 --- a/src/helpers/related_projects.js +++ b/src/helpers/related_projects.js @@ -240,14 +240,14 @@ function relatedProjects (categories = [], projectIds = []) { id: 'kafka', text: 'Spring for Apache Kafka', categories: ['messaging'], - }, + }, { href: 'https://docs.spring.io/spring-modulith/reference/', id: 'modulith', text: 'Spring Modulith' }, { href: 'https://docs.spring.io/spring-pulsar/reference/', id: 'pulsar', text: 'Spring for Apache Pulsar', categories: ['messaging'], - }, + }, { href: 'https://docs.spring.io/spring-shell/reference/', id: 'shell', text: 'Spring Shell' }, ] return projectDocumentation.filter(