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 0cf2eed  update
0cf2eed is described below

commit 0cf2eede74ea47fb395ef66feab05f515a12be27
Author: LiLi <[email protected]>
AuthorDate: Mon Jan 24 19:22:50 2022 +0800

    update
    
    Signed-off-by: LiLi <[email protected]>
---
 site2/website-next/src/theme/Navbar/index.js | 7 ++++++-
 site2/website-next/src/utils/index.js        | 3 ++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/site2/website-next/src/theme/Navbar/index.js 
b/site2/website-next/src/theme/Navbar/index.js
index 6d0fe16..88df1d2 100644
--- a/site2/website-next/src/theme/Navbar/index.js
+++ b/site2/website-next/src/theme/Navbar/index.js
@@ -25,7 +25,12 @@ import Logo from "@theme/Logo";
 import IconMenu from "@theme/IconMenu";
 import IconClose from "@theme/IconClose";
 import styles from "./styles.module.css"; // retrocompatible with v1
-import { setVersion, getVersion, getApiVersion } from "../../utils/index.js";
+import {
+  latestStableVersion,
+  setVersion,
+  getVersion,
+  getApiVersion,
+} from "../../utils/index.js";
 
 const DefaultNavItemPosition = "right";
 
diff --git a/site2/website-next/src/utils/index.js 
b/site2/website-next/src/utils/index.js
index c8b7321..37c7693 100644
--- a/site2/website-next/src/utils/index.js
+++ b/site2/website-next/src/utils/index.js
@@ -4,10 +4,11 @@ featuredUsers.sort((a, b) => (a.featured > b.featured ? 1 : 
-1));
 
 const versions = require("../../versions.json");
 const restApiVersions = require("../../static/swagger/restApiVersions.json");
-const latestStableVersion = versions[0];
 
 const siteConfig = require(`../../docusaurus.config.js`);
 
+export const latestStableVersion = versions[0];
+
 export function imgUrl(img) {
   return siteConfig.baseUrl + "img/" + img;
 }

Reply via email to