Index key website pages into docs search#73
Merged
Conversation
ce6deb1 to
e647e73
Compare
outbound/senders became outbound/sources and privacy-and-security became legal/security-and-privacy-policy; the external_links check has been failing on the redirects.
Docs search showed people looking for how to cancel without finding anything. Deliberately not linked in the sidebar — it's there for people who search for it.
Docs search couldn't answer queries for content that lives on the main site (gdpr, dpa, cancel and pricing all returned nothing). A postprocess step now fetches the pages listed under algolia:external_pages in config.yaml and indexes them alongside the docs content, with the page URL as the objectID so results link straight to the site.
e647e73 to
7c696f9
Compare
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.
Docs search couldn't answer queries for content that lives on the main site —
gdpr,dpa,cancelandpricingall returned nothing (7 of the 28 zero-result searches in the last 90 days were the GDPR/DPA cluster). Apostprocessstep now fetches the pages listed underalgolia: external_pagesinconfig.yamland indexes them alongside the docs content, with the page URL as the objectID so search results link straight to the site. Also adds a short cancelling-your-account doc — deliberately not in the sidebar; it's there for people who search for it. The first commit fixes the staleoutbound/sendersandprivacy-and-securitylinks that were failing the external_links check on every build.Verified against a scratch index:
gdpr/dpa→ Security and Privacy Policy,cancel→ Refund Policy,pricing→ Plans & Pricing. A fetch failure warns and skips the page rather than failing the build.