You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ur...@apache.org on 2022/05/13 11:36:54 UTC

[pulsar-site] branch main updated: feat: add announcement bar

This is an automated email from the ASF dual-hosted git repository.

urfree 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 d12515fe435 feat: add announcement bar
     new 9005b4a6f19 Merge pull request #76 from SignorMercurio/main
d12515fe435 is described below

commit d12515fe4355ab296daf8a6f08771a3c18e4c189
Author: Mercurio <si...@gmail.com>
AuthorDate: Fri May 13 09:23:52 2022 +0100

    feat: add announcement bar
---
 site2/website-next/docusaurus.config.js | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/site2/website-next/docusaurus.config.js b/site2/website-next/docusaurus.config.js
index cea97977706..5d833e782ef 100644
--- a/site2/website-next/docusaurus.config.js
+++ b/site2/website-next/docusaurus.config.js
@@ -6,7 +6,7 @@ const linkifyRegex = require("./plugins/remark-linkify-regex");
 const versions = require("./versions.json");
 const versionsMap = {
   ..._.keyBy(
-    versions.slice(1).map((item) => {
+    versions.slice(1).map(item => {
       return {
         label: item,
         path: item,
@@ -140,6 +140,14 @@ module.exports = {
     },
   },
   themeConfig: {
+    announcementBar: {
+      id: "summit",
+      content:
+        '🚀 Pulsar Summit San Francisco 2022 will take place on August 18th, 2022. <a target="_blank" href="https://pulsar-summit.org/">Register now</a> and help us make it an even bigger success by spreading the word on social media!',
+      backgroundColor: "#198fff",
+      textColor: "#fff",
+      isCloseable: true,
+    },
     colorMode: {
       disableSwitch: false,
     },