jiayuasu opened a new pull request, #110:
URL: https://github.com/apache/sedona-spatialbench/pull/110

   Fixes #109
   
   ## What changes were proposed in this PR?
   
   Add `site_url: https://sedona.apache.org/spatialbench/` to `mkdocs.yml`.
   
   Without `site_url`, the `mkdocs-static-i18n` plugin generates the header 
language-switcher links rooted at the domain, so the 中文 option pointed to 
`https://sedona.apache.org/zh/` (404) instead of 
`https://sedona.apache.org/spatialbench/zh/`. Setting `site_url` also makes 
Material emit correct `<link rel="canonical">` tags and sitemap URLs.
   
   ## How was this patch tested?
   
   Built the docs locally with the full plugin stack and inspected the 
generated HTML:
   
   - The language switcher now links to `/spatialbench/` (English) and 
`/spatialbench/zh/` (中文) on both the English and Chinese pages.
   - Canonical links now appear, pointing at 
`https://sedona.apache.org/spatialbench/` and 
`https://sedona.apache.org/spatialbench/zh/`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to