Skip to content

Commit 0f8d3c5

Browse files
authored
Add notification about ScalarDB 3.15.3 patch release (#1257)
* Add message about 3.15.3 release * Remove announcement * Add parameters to announcement bar URL Parameters help us better understand clicks on links in the announcement bar.
1 parent bdb914a commit 0f8d3c5

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

docusaurus.config.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -534,15 +534,14 @@ const config = {
534534
darkTheme: prismThemes.dracula,
535535
additionalLanguages: ['csharp', 'docker', 'gradle', 'java', 'json', 'log', 'properties', 'python', 'scala', 'shell-session', 'sql', 'toml'],
536536
},
537-
announcementBar: {
538-
id: 'new_version',
539-
content:
540-
'<b>Announcing the release of ScalarDB 3.15!🚀 For details on what\'s included in this new version, see the <a target="_self" href="https://scalardb.scalar-labs.com/docs/latest/releases/release-notes">release notes</a>.',
541-
// '<b>Announcing the release of ScalarDB X.X!🚀 For details on what\'s included in this new version, see the <a target="_self" rel="noopener noreferrer" href="/docs/latest/releases/release-notes">release notes</a>.<b>',
542-
backgroundColor: '#2673BB',
543-
textColor: '#FFFFFF',
544-
isCloseable: false,
545-
},
537+
// announcementBar: {
538+
// id: 'new_version',
539+
// content:
540+
// // '<b>Announcing the release of ScalarDB X.X!🚀 For details on what\'s included in this new version, see the <a target="_self" rel="noopener noreferrer" href="/docs/latest/releases/release-notes?utm_source=docs-site&utm_medium=announcementbar">release notes</a>.<b>',
541+
// backgroundColor: '#2673BB',
542+
// textColor: '#FFFFFF',
543+
// isCloseable: false,
544+
// },
546545
zoom: {
547546
selector: '.markdown :not(em) > img',
548547
background: {

src/data/notifications.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
// This file contains the notifications data and a function to retrieve it.
22
// The notifications are stored in an array of objects, each containing a message in multiple languages and URLs for those messages.
33
const notificationsList = [
4+
{
5+
message: {
6+
en: 'Check out the release notes for ScalarDB 3.15.3',
7+
ja: 'ScalarDB 3.15.3 のリリースノートをご覧ください'
8+
},
9+
url: {
10+
en: 'releases/release-notes#v3153?utm_source=docs-site&utm_medium=notifications',
11+
ja: 'releases/release-notes#v3153?utm_source=docs-site&utm_medium=notifications'
12+
},
13+
unread: true
14+
},
415
{
516
message: {
617
en: 'Discover how to implement vector search capabilities with ScalarDB Cluster',

0 commit comments

Comments
 (0)