Skip to content

docs: add production docs link to dev-mode search disabled notice#45794

Closed
pelikhan with Copilot wants to merge 4 commits into
mainfrom
copilot/deep-report-link-production-docs
Closed

docs: add production docs link to dev-mode search disabled notice#45794
pelikhan with Copilot wants to merge 4 commits into
mainfrom
copilot/deep-report-link-production-docs

Conversation

Copilot AI commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

In dev/PR-preview builds, Starlight shows "Search is only available in production builds." with no actionable next step — a dead end for anyone exploring via a PR preview.

Changes

  • docs/src/components/CustomSearch.astro — New Starlight Search component override. Identical to the built-in except the DEV-mode notice now includes a link to the production docs site:

    {import.meta.env.DEV ? (
      <div style="margin: auto; text-align: center; white-space: pre-line;" dir="ltr">
        <p>{Astro.locals.t('search.devWarning')}</p>
        <p>
          <a href={PRODUCTION_DOCS_URL} aria-label="Search the production documentation site">
            Search the production docs →
          </a>
        </p>
      </div>
    ) : ( /* pagefind UI */ )}
  • docs/astro.config.mjs — Registers the override under components.Search.

Copilot AI and others added 3 commits July 15, 2026 17:49
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
In dev/PR-preview builds, Starlight shows "Search is only available in
production builds." with no actionable next step. Create a custom Search
component override that adds a "Search the production docs →" link
pointing to https://github.github.com/gh-aw/ in that notice, giving
preview users a direct path to the fully-functional docs search.

Closes #45765

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add link to production docs in search disabled notice docs: add production docs link to dev-mode search disabled notice Jul 15, 2026
Copilot AI requested a review from pelikhan July 15, 2026 17:56
@pelikhan pelikhan closed this Jul 15, 2026
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.

[deep-report] Docs: link production docs from the dev/preview "search disabled" notice

2 participants