fix(docs): deploy GitHub Pages via the Actions source#13
Merged
Conversation
added 2 commits
July 21, 2026 15:21
The Docs workflow built and uploaded the site fine, but deploy-pages failed with "HttpError: Not Found" because the repo's Pages was in legacy "Deploy from a branch" mode (main /root) — which just serves the raw README, so the site showed a single page with no navigation. Add actions/configure-pages@v5 with enablement:true before deploy-pages so the workflow switches the Pages source to "GitHub Actions" (build_type=workflow) and publishes the built MkDocs site. Assisted-By: Claude <noreply@anthropic.com> Signed-off-by: Osher-Elhadad <Osher.Elhadad@ibm.com>
integrations.md lives at docs/ root, so the link to the how-to guide must be how-to/choose-a-preset.md, not ../how-to/... . The ../ form pointed outside the docs tree and failed `mkdocs build --strict`. Assisted-By: Claude <noreply@anthropic.com> Signed-off-by: Osher-Elhadad <Osher.Elhadad@ibm.com>
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.
Problem
https://rossoctl.github.io/context-guru/shows a single page with no menu — it's serving the raw repoREADME.mdbecause Pages is set to legacy Deploy from a branch (main, /root), not the built MkDocs site.The
Docsworkflow already builds the site correctly, but itsdeployjob failed on both merges to main with:That error is what
actions/deploy-pagesreturns when the repo's Pagesbuild_typeislegacyrather thanworkflow.Fix
Add
actions/configure-pages@v5withenablement: truebeforedeploy-pages. On the next run it switches the Pages source to GitHub Actions (build_type: workflow) and then publishes the built site — homepage, nav, and all.After merging
Merging this to
maintriggers theDocsworkflow (it touches the workflow file), which will flip the source and deploy the real site. If auto-enablement is blocked by org policy, the one-click equivalent is Settings → Pages → Source → "GitHub Actions", then re-run the workflow.