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

chungen0126 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 2564e2bc0b HDDS-16234. Favicon missing on all non-root pages (#534)
2564e2bc0b is described below

commit 2564e2bc0b3b586323f69675fd2a2ee45a0e4e2c
Author: Mark Tsai <[email protected]>
AuthorDate: Thu Aug 27 10:45:34 2026 +0800

    HDDS-16234. Favicon missing on all non-root pages (#534)
---
 docusaurus.config.js | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/docusaurus.config.js b/docusaurus.config.js
index 5c4739f8f5..241d54206c 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -26,6 +26,10 @@ const {themes} = require('prism-react-renderer');
 const lightCodeTheme = themes.github;
 const darkCodeTheme = themes.dracula;
 
+// Set the /<baseUrl>/ pathname under which your site is served
+// For GitHub pages deployment, it is often '/<projectName>/'
+const baseUrl = '/';
+
 /** @type {import('@docusaurus/types').Config} */
 const config = {
   title: 'Apache Ozone',
@@ -34,9 +38,7 @@ const config = {
   // 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',
-  // Set the /<baseUrl>/ pathname under which your site is served
-  // For GitHub pages deployment, it is often '/<projectName>/'
-  baseUrl: '/',
+  baseUrl,
 
   // Fail the build if there are any broken links.
   onBrokenLinks: 'throw',
@@ -62,7 +64,7 @@ const config = {
       tagName: 'link',
       attributes: {
         rel: 'icon',
-        href: 'favicon.ico',
+        href: `${baseUrl}favicon.ico`,
         sizes: '32x32'
       },
     },
@@ -70,7 +72,7 @@ const config = {
       tagName: 'link',
       attributes: {
         rel: 'icon',
-        href: 'favicon.svg',
+        href: `${baseUrl}favicon.svg`,
         type: "image/svg+xml"
       },
     },
@@ -78,7 +80,7 @@ const config = {
       tagName: 'link',
       attributes: {
         rel: 'apple-touch-icon',
-        href: 'apple-touch-icon.png',
+        href: `${baseUrl}apple-touch-icon.png`,
       },
     },
     {


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

Reply via email to