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

weichiu pushed a commit to branch HDDS-9225-website-v2
in repository https://gitbox.apache.org/repos/asf/ozone-site.git


The following commit(s) were added to refs/heads/HDDS-9225-website-v2 by this 
push:
     new 20b71d008 HDDS-12129. Allow search engines to index the v2 website 
before launching it (#326)
20b71d008 is described below

commit 20b71d0082c456fcb933df388eebdf5b96f9350c
Author: Wei-Chiu Chuang <[email protected]>
AuthorDate: Mon Feb 9 13:58:56 2026 -0800

    HDDS-12129. Allow search engines to index the v2 website before launching 
it (#326)
---
 docusaurus.config.js | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

diff --git a/docusaurus.config.js b/docusaurus.config.js
index 3b2beffb8..0626ee12b 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -30,12 +30,10 @@ const darkCodeTheme = themes.dracula;
 const config = {
   title: 'Apache Ozone',
   tagline: 'Scalable, reliable, distributed storage system optimized for data 
analytics and object store workloads.',
-  // TODO: HDDS-12129 Delete this before the site goes live to enable search 
engine indexing.
-  noIndex: true,
   // Set the production URL of the website. Must be updated when the final 
site is deployed.
   // This must match the URL the website is hosted at for social media 
previews to work.
   // If you are testing the social media image (themeConfig.image) locally, 
set this to http://localhost:3001.
-  url: 'https://ozone-site-v2.staged.apache.org',
+  url: 'https://ozone.apache.org',
   // Set the /<baseUrl>/ pathname under which your site is served
   // For GitHub pages deployment, it is often '/<projectName>/'
   baseUrl: '/',
@@ -83,6 +81,13 @@ const config = {
         href: 'apple-touch-icon.png',
       },
     },
+    {
+      tagName: 'meta',
+      attributes: {
+        name: 'google-site-verification',
+        content: 'fXhAWQ_Jb1fOk6QlN9a7Zs_Xsj-E2U0Q8oFqTNVclaE',
+      },
+    },
   ],
 
   markdown: {
@@ -121,15 +126,13 @@ const config = {
       ({
         docs: {
           sidebarPath: undefined,
-          // TODO update this link when the new website's branch is merged.
           editUrl:
-            'https://github.com/apache/ozone-site/tree/HDDS-9225-website-v2',
+            'https://github.com/apache/ozone-site/tree/master',
         },
         blog: {
           showReadingTime: true,
-          // TODO update this link when the new website's branch is merged.
           editUrl:
-            'https://github.com/apache/ozone-site/tree/HDDS-9225-website-v2/',
+            'https://github.com/apache/ozone-site/tree/master/',
         },
         theme: {
           customCss: [
@@ -147,8 +150,7 @@ const config = {
             const {defaultCreateSitemapItems, ...rest} = params;
             const items = await defaultCreateSitemapItems(rest);
 
-            // TODO Base URL must be updated when the new website's branch is 
merged.
-            const validUrlRegex = new 
RegExp('^https://ozone-site-v2\.staged\.apache\.org/([a-z0-9][a-z0-9\./-]*[a-z0-9/])?$');
+            const validUrlRegex = 
/^https:\/\/ozone\.apache\.org\/([a-z0-9][a-z0-9./-]*[a-z0-9/])?$/;
             items.forEach((item, index) => {
               if (!validUrlRegex.test(item.url)) {
                   console.error('Generated URL', item.url, 'does not match the 
allowed RegEx:', validUrlRegex);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to