Repository navigation
Conversation
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>
✅ Deploy Preview for ai-openshell-website ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
/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 withBASE_PATH=/<repo>/docs/andWEBSITE=1, runsnpm run website, and uploadsbuild/website.scripts/website.mjs: derives the site root from the docs base path and prefixes the website pages' root-relativehref/srclinks, the search index paths, andllms.txtwith 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 fromdata-merge-base-urlinstead of a hard-coded/.data-merge-base-url="/"attribute (diffed the fullbuild/websitebefore and after).CONTRIBUTING.md: Hosting section describes what Pages publishes.Testing
mise run lint,mise run test, andmise run typecheckpass (typecheck also under the/website/docs/base)mise run websitebuilds, and I checked the changed pages locally: built under/website/, served withscripts/serve.mjs, and every local link on the landing, Community, docs, dev docs and 404 pages resolves (158 links, none outside/website/)Checklist
.licensefile — no new files