fix(docs): restore GitHub Pages assets and navigation - #1405
Merged
Merged
Conversation
Use the public Pages origin and /scope base for production and PR builds, prefix internal Markdown and MDX links, and repair API reference landing links. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Wassim Chegham (manekinekko)
marked this pull request as ready for review
September 17, 2026 15:37
Copilot started reviewing on behalf of
Wassim Chegham (manekinekko)
September 17, 2026 15:38
View session
There was a problem hiding this comment.
🟢 Approval recommended
The base-path implementation is covered by regression tests and the deployment, documentation, and API-link changes are consistent.
Pull request overview
Restores correct GitHub Pages asset and navigation URLs for the /scope deployment.
Changes:
- Adds base-path rewriting for Markdown and MDX URLs with regression tests.
- Updates API reference links and documentation authoring guidance.
- Configures CI builds with the public GitHub Pages origin and base path.
File summaries
| File | Description |
|---|---|
website/src/plugins/remark-base-path.mjs |
Adds deployment base-path rewriting. |
website/src/plugins/remark-base-path.test.mjs |
Tests URL transformation behavior. |
website/astro.config.mjs |
Registers the plugin and base configuration. |
.github/workflows/static.yml |
Builds and tests using public Pages settings. |
website/package.json |
Adds the plugin test command. |
website/README.md |
Documents link and deployment conventions. |
website/AGENTS.md |
Updates site development guidance. |
website/src/content/docs/resources/faq.md |
Corrects API reference link. |
website/src/content/docs/reference/rest-api.md |
Corrects API reference links. |
website/src/content/docs/guides/submitting-requests-api.mdx |
Corrects API reference links. |
website/src/content/docs/guides/prioritizing-requests.mdx |
Corrects API reference link. |
Review details
- Files reviewed: 11/11 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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
The published docs at https://microsoft.github.io/scope/ were built for an isolated Pages hostname with no
/scopebase path. Stylesheets and scripts loaded from the wrong location, and 177 internal URLs omitted the deployment prefix./scopebase instead of the URL reported byactions/configure-pages.href/srcattributes at build time. Preserve external URLs, relative links, fragments, code examples, and local root deployments./reference/api/operations/index with/reference/api/.Demo
Documentation-site fix only; no Portal or CLI changes. Before: assets under
https://microsoft.github.io/_astro/returned 404, although the same assets existed under/scope/_astro/. The rebuilt site uses/scope/for assets and navigation. The public site will update after merge and deployment.Testing
cd website && pnpm test: all 7 plugin regression tests passed.SITE=https://microsoft.github.io BASE_PATH=/scope pnpm run build: 200 pages generated.BASE_PATH=/: 200 pages generated, preserving local root deployment behavior./scope/prefixes. Public canonical and sitemap URLs usehttps://microsoft.github.io/scope/./scope/and/scope/reference/api/successfully.Documentation and compatibility
Updated
website/README.mdandwebsite/AGENTS.mdwith the public deployment settings, base-aware link conventions, and plugin test command. No API, CLI, database, or dependency changes. Local development still defaults to/.Checklist
up()/down()and keep it CosmosDB-compatible. N/A: no database changes.NOTICE/NOTICE-REVIEW.txtwithpnpm noticeas needed. N/A: no dependency changes.