Skip to content

fix(site): publish the full website to GitHub Pages - #31

Open
pimlock wants to merge 1 commit into
mainfrom
fix/pages-full-site/pimlock
Open

pimlock wants to merge 1 commit into
mainfrom
fix/pages-full-site/pimlock

Conversation

@pimlock

@pimlock pimlock commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Summary

GitHub Pages published only the docs at /website/, but the shared site bar links to /, /docs/ and /community/, so every site link 404ed there. Pages now builds the full website as Netlify does, under /<repo>/.

Related Issue

Small fix with no issue: the Pages site's site-bar links 404.

Changes

  • URLs on Pages: website pages at /website/ (landing, /website/community/, /website/llms.txt) and docs at /website/docs/. Docs previously at /website/<page>/ move to /website/docs/<page>/; no redirects, since Pages is a preview copy.
  • .github/workflows/site.yml: builds the docs with BASE_PATH=/<repo>/docs/ and WEBSITE=1, runs npm run website, and uploads build/website.
  • scripts/website.mjs: derives the site root from the docs base path and prefixes the website pages' root-relative href/src links, the search index paths, and llms.txt with it.
  • theme/site-bar.mjs, theme/search.js, Header.astro: the site bar takes the root for its links and wordmark; the merged website search index gets its base URL from data-merge-base-url instead of a hard-coded /.
  • Netlify output is unchanged apart from the new data-merge-base-url="/" attribute (diffed the full build/website before and after).
  • CONTRIBUTING.md: Hosting section describes what Pages publishes.

Testing

  • mise run lint, mise run test, and mise run typecheck pass (typecheck also under the /website/docs/ base)
  • mise run website builds, and I checked the changed pages locally: built under /website/, served with scripts/serve.mjs, and every local link on the landing, Community, docs, dev docs and 404 pages resolves (158 links, none outside /website/)
  • Screenshots attached for visual changes, in light and dark mode (if applicable) — no visual changes

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • New files have an SPDX license line or a .license file — no new files
  • README or CONTRIBUTING.md updated (if applicable)

The Pages build published only the docs at /website/, while the shared
site bar links to /, /docs/ and /community/, so those links 404ed there.

Build the website on Pages as Netlify does, under /<repo>/: the website
pages at /<repo>/ and the docs at /<repo>/docs/. scripts/website.mjs takes
the site root from the docs base path and prefixes the website pages'
root-relative links, the search index paths, and llms.txt with it. The
site bar and search take the root too. The Netlify build is unchanged.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
@pimlock
pimlock requested review from a team as code owners November 26, 2026 23:20
@netlify

netlify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for ai-openshell-website ready!

Name Link
🔨 Latest commit a16e532
🔍 Latest deploy log https://app.netlify.com/projects/ai-openshell-website/deploys/6b08bebea8ead58ff04e4cde
😎 Deploy Preview https://deploy-preview-31--ai-openshell-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant