Repository navigation
Enable API Explorer and page feedback in prod - #5010
Merged
Merged
Conversation
DO NOT MERGE until the API Explorer go-live checklist reaches the flag step. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/5010/ Sample changed pages: |
Isolated builds link API pages to www.elastic.co, so they stop emitting legacy /api/doc/ URLs once prod serves the API Explorer. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The bump.sh mapping keeps its coverage through a legacy-host resolver. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot stopped work on behalf of
reakaleek due to an error
November 24, 2026 10:18
Co-Authored-By: Claude Opus 5.5 <[email protected]>
reakaleek
approved these changes
Nov 24, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
This turns on
ASSEMBLER_API_EXPLORERandPAGE_FEEDBACKfor theprodassembler environment, so the production site serves docs-builder API pages with page feedback. Isolated and codex builds start linking API pages in the API Explorer form at the same time.Affects: API reference, Configuration, Links & redirects
Prompt summary: Prepare the production flag change for the API Explorer go-live. It merges at the flag step of the go-live checklist in elastic/docs-eng-team#1235.
Why
prodlists nofeature_flags:, so both flags stay off and production keeps serving API pages from bump.sh.staging,edge,demoandpreviewalready run both flags on. Isolated builds link API pages to www.elastic.co, so their links must switch form at the same moment as prod does, or they point at the legacy/docs/api/doc/URLs after the cutover.What
Production flags
The
prodenvironment inconfig/assembler.ymlgainsASSEMBLER_API_EXPLORER: trueandPAGE_FEEDBACK: true. No other environment changes.Isolated build API links
IsolatedBuildEnvironmentUriResolver.LegacyApiUrlsturnsfalse, so isolated builds, and codex builds throughCodexAwareUriResolver, link tohttps://www.elastic.co/docs/api/<api>/…and not/docs/api/doc/<api>/…. Publish environments still follow their own flag, so a host without the API Explorer keeps the legacy form.Guard tests
The prod guard test now checks that prod's YAML sets
ASSEMBLER_API_EXPLORER: true, so an environment override can't mask a removed key, and the feature-flag matrix and cross-link snapshots show the new prod flags and isolated links.FloatingLinkTestskeeps covering the bump.sh version mapping through a resolver for a legacy host.Authoring guide
The API link guide now tells authors to write
/docs/api/<api>/...links. Most existing/docs/api/doc/...links still work through the edge redirect and get a hint with the new URL. Ones with no new page, such asobservability-serverless, get a missing-page hint.Risk:
config/assembler.ymlis also the changelog-scrubber's public-bucket allowlist, and this change goes live on the production site. Merge it only as one step of the go-live run, together with the docs-infra change in elastic/docs-infra#486. Rollback needs both repos: revert this PR and revert elastic/docs-infra#486. Reverting this PR alone stops generating the new links but does not bring back the bump.sh proxy for/docs/api/doc/.Verify
mise run test🤖 Generated with Claude Code