From f595bb99b01f3ce745f7344d22b9efa49ee8fba4 Mon Sep 17 00:00:00 2001 From: Josh Wong <23216828+josh-wong@users.noreply.github.com> Date: Tue, 27 May 2025 19:22:05 +0900 Subject: [PATCH 1/3] Add message about 3.15.3 release --- src/data/notifications.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/data/notifications.js b/src/data/notifications.js index cfebf1a1..caf358a8 100644 --- a/src/data/notifications.js +++ b/src/data/notifications.js @@ -1,6 +1,17 @@ // This file contains the notifications data and a function to retrieve it. // The notifications are stored in an array of objects, each containing a message in multiple languages and URLs for those messages. const notificationsList = [ + { + message: { + en: 'Check out the release notes for ScalarDB 3.15.3', + ja: 'ScalarDB 3.15.3 のリリースノートをご覧ください' + }, + url: { + en: 'releases/release-notes#v3153?utm_source=docs-site&utm_medium=notifications', + ja: 'releases/release-notes#v3153?utm_source=docs-site&utm_medium=notifications' + }, + unread: true + }, { message: { en: 'Discover how to implement vector search capabilities with ScalarDB Cluster', From 7882ae693abfe2d1267856064fd7b2f1e301188e Mon Sep 17 00:00:00 2001 From: Josh Wong <23216828+josh-wong@users.noreply.github.com> Date: Tue, 27 May 2025 19:35:13 +0900 Subject: [PATCH 2/3] Remove announcement --- docusaurus.config.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 689b7704..4d878373 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -534,15 +534,14 @@ const config = { darkTheme: prismThemes.dracula, additionalLanguages: ['csharp', 'docker', 'gradle', 'java', 'json', 'log', 'properties', 'python', 'scala', 'shell-session', 'sql', 'toml'], }, - announcementBar: { - id: 'new_version', - content: - 'Announcing the release of ScalarDB 3.15!🚀 For details on what\'s included in this new version, see the release notes.', - // 'Announcing the release of ScalarDB X.X!🚀 For details on what\'s included in this new version, see the release notes.', - backgroundColor: '#2673BB', - textColor: '#FFFFFF', - isCloseable: false, - }, + // announcementBar: { + // id: 'new_version', + // content: + // // 'Announcing the release of ScalarDB X.X!🚀 For details on what\'s included in this new version, see the release notes.', + // backgroundColor: '#2673BB', + // textColor: '#FFFFFF', + // isCloseable: false, + // }, zoom: { selector: '.markdown :not(em) > img', background: { From a35bc8c0f6680d0756c99a8b68602ec56f616956 Mon Sep 17 00:00:00 2001 From: Josh Wong <23216828+josh-wong@users.noreply.github.com> Date: Tue, 27 May 2025 19:37:24 +0900 Subject: [PATCH 3/3] Add parameters to announcement bar URL Parameters help us better understand clicks on links in the announcement bar. --- docusaurus.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 4d878373..81151917 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -537,7 +537,7 @@ const config = { // announcementBar: { // id: 'new_version', // content: - // // 'Announcing the release of ScalarDB X.X!🚀 For details on what\'s included in this new version, see the release notes.', + // // 'Announcing the release of ScalarDB X.X!🚀 For details on what\'s included in this new version, see the release notes.', // backgroundColor: '#2673BB', // textColor: '#FFFFFF', // isCloseable: false,