Skip to content

fix(html): resolve search links from docs root - #814

Open
divybot wants to merge 3 commits into
mainfrom
orch/divybot-524-search-root-links
Open

fix(html): resolve search links from docs root#814
divybot wants to merge 3 commits into
mainfrom
orch/divybot-524-search-root-links

Conversation

@divybot

@divybot divybot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Fixes generated HTML search-result links when searching from symbol subpages.

The search script now derives the documentation root from the loaded search.js URL via document.currentScript.src, instead of inferring depth from the ambiguous doc-current-file meta tag.

This supports denoland/deno#25069 and denoland/deno#35014.

Tests:

  • INSTA_UPDATE=always cargo test --test html_test html_doc_ -- --nocapture
  • cargo test --test html_test -- --nocapture
  • cargo fmt --check

@deno-cla-assistant

Copy link
Copy Markdown

Deno Individual Contributor License Agreement

The following contributors need to sign the CLA before this PR can be merged:

Click here to review and sign the CLA | Re-run CLA check


This is an automated message from CLA Assistant

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@littledivy
littledivy force-pushed the orch/divybot-524-search-root-links branch from 2ee94a8 to f50339c Compare June 14, 2026 10:32
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.

2 participants