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 ec571d3c1 Revert "HDDS-12129. Allow search engines to index the v2
website before launching it (#326)"
ec571d3c1 is described below
commit ec571d3c145ab456a9c251e3f4d91a8ea7dbce96
Author: Wei-Chiu Chuang <[email protected]>
AuthorDate: Mon Feb 9 14:08:34 2026 -0800
Revert "HDDS-12129. Allow search engines to index the v2 website before
launching it (#326)"
This reverts commit 20b71d0082c456fcb933df388eebdf5b96f9350c.
Apply this commit to the master branch, not the HDDS-9225-website-v2
branch. We could still use this branch for future staging development
---
docusaurus.config.js | 20 +++++++++-----------
1 file changed, 9 insertions(+), 11 deletions(-)
diff --git a/docusaurus.config.js b/docusaurus.config.js
index 0626ee12b..3b2beffb8 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -30,10 +30,12 @@ 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.apache.org',
+ url: 'https://ozone-site-v2.staged.apache.org',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
@@ -81,13 +83,6 @@ const config = {
href: 'apple-touch-icon.png',
},
},
- {
- tagName: 'meta',
- attributes: {
- name: 'google-site-verification',
- content: 'fXhAWQ_Jb1fOk6QlN9a7Zs_Xsj-E2U0Q8oFqTNVclaE',
- },
- },
],
markdown: {
@@ -126,13 +121,15 @@ 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/master',
+ 'https://github.com/apache/ozone-site/tree/HDDS-9225-website-v2',
},
blog: {
showReadingTime: true,
+ // TODO update this link when the new website's branch is merged.
editUrl:
- 'https://github.com/apache/ozone-site/tree/master/',
+ 'https://github.com/apache/ozone-site/tree/HDDS-9225-website-v2/',
},
theme: {
customCss: [
@@ -150,7 +147,8 @@ const config = {
const {defaultCreateSitemapItems, ...rest} = params;
const items = await defaultCreateSitemapItems(rest);
- const validUrlRegex =
/^https:\/\/ozone\.apache\.org\/([a-z0-9][a-z0-9./-]*[a-z0-9/])?$/;
+ // 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/])?$');
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]