You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by su...@apache.org on 2023/12/14 14:42:52 UTC

(incubator-opendal) 01/02: update env name

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

suyanhanx pushed a commit to branch relative-deploy
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git

commit 7a2b7fb17189f76851473e697e643088247e0a11
Author: suyanhanx <su...@gmail.com>
AuthorDate: Thu Dec 14 22:41:25 2023 +0800

    update env name
    
    Signed-off-by: suyanhanx <su...@gmail.com>
---
 website/docusaurus.config.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js
index 75719e240..d1a6b8827 100644
--- a/website/docusaurus.config.js
+++ b/website/docusaurus.config.js
@@ -24,8 +24,8 @@ const lightCodeTheme = require('prism-react-renderer/themes/github');
 const darkCodeTheme = require('prism-react-renderer/themes/dracula');
 const repoAddress = 'https://github.com/apache/incubator-opendal';
 
-const baseUrl = process.env.BASE_URL ? process.env.BASE_URL : '/';
-const showAnnouncementBar = process.env.SHOW_ANNOUNCEMENT_BAR ? process.env.SHOW_ANNOUNCEMENT_BAR : false;
+const baseUrl = process.env.OPENDAL_WEBSITE_BASE_URL ? process.env.OPENDAL_WEBSITE_BASE_URL : '/';
+const websiteNotLatest = process.env.OPENDAL_WEBSITE_NOT_LATEST ? process.env.OPENDAL_WEBSITE_NOT_LATEST : false;
 
 /** @type {import('@docusaurus/types').Config} */
 const config = {
@@ -234,7 +234,7 @@ const config = {
 function generateConfig() {
   config.baseUrl = baseUrl
 
-  if (showAnnouncementBar) {
+  if (websiteNotLatest) {
     config.themeConfig.announcementBar = {
       id: 'announcementBar-0', // Increment on change
       content: 'You are viewing the documentation of a <strong>historical release</strong>. <a href="https://nightlies.apache.org/opendal/opendal-docs-stable/">View the latest stable release</a>.',