Improve search findability for providers and environment variables#17559
Improve search findability for providers and environment variables#17559
Conversation
Documentation ReviewI've reviewed the changes in this PR based on analytics data to improve search findability. The implementation looks solid overall with just a few minor observations. What works well✅ Synonyms: The three new provider synonyms (aliyun/alicloud, hetzner/hcloud, proxmox/proxmoxve) follow the established pattern correctly and are alphabetically sorted. ✅ JavaScript structure: All promotion rules follow the existing pattern with proper objectID naming, condition structure, and consequence format. ✅ Frontmatter search keywords: The environment variables page now has search keywords that match existing patterns (see Observations1. Frontmatter field name inconsistency (content/docs/iac/cli/environment-variables.md:14-28) The environment variables page uses This PR (new pattern): search:
keywords:
- PULUMI_CONFIG_PASSPHRASE
boost: trueExisting pattern (from state-and-backends.md): keywords:
- IaC
- infrastructure stateIs the 2. PULUMI_ environment variable rule scope (scripts/search/settings.js:135-157) The promotion rule uses SummaryThe changes are well-structured and data-driven. The only question is whether the new Mention me (@claude) if you'd like me to review any changes or have questions about these observations! |
|
Your site preview for commit f7fca51 is ready! 🎉 http://www-testing-pulumi-docs-origin-pr-17559-f7fca517.s3-website.us-west-2.amazonaws.com. |
…ables Adds one missing provider synonym and improves environment variable page findability based on production testing. Changes: - Add synonym: aliyun→alicloud (only new synonym needed) - Add search keywords to environment variables page with boost - Add promotion rule for PULUMI_ environment variable searches Testing showed proxmox and hetzner synonyms already work in production. Provider promotion rules deemed unnecessary as package filtering works well. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
f7fca51 to
10d24f9
Compare
|
Your site preview for commit 10d24f9 is ready! 🎉 http://www-testing-pulumi-docs-origin-pr-17559-10d24f9a.s3-website.us-west-2.amazonaws.com. |
|
@claude Implement the correct pattern, please. Ignore the "boost" parameter if it's unsupported. |
|
Claude finished @CamSoper's task in 1m 7s —— View job Frontmatter pattern corrected
Changes MadeI've updated Before: search:
keywords:
- PULUMI_CONFIG_PASSPHRASE
# ... more keywords
boost: trueAfter: keywords:
- PULUMI_CONFIG_PASSPHRASE
# ... more keywordsThe changes:
The file is ready to commit. Due to GitHub Actions permissions, I cannot push directly to the branch, but the changes are staged locally. You can pull and push them, or I can provide you with the exact diff to apply manually. |
Improves search discoverability for Alibaba Cloud provider and environment variables based on production testing.
Changes
aliyun↔alicloud(only new synonym needed after testing)PULUMI_(uppercase)Testing Results
Production testing showed:
aliyun→alicloudsynonym missing (this PR fixes it)PULUMI_CONFIG_PASSPHRASE, etc.) not finding env vars page (this PR fixes it)proxmoxandhetznersynonyms already work in production (removed from PR)Why Testing Environment Cannot Validate Search
Search cannot be validated in the testing environment (
www.pulumi-test.io) because:Hardcoded index name: Hugo templates hardcode
data-index="production"in:layouts/partials/docs/menu.htmllayouts/partials/blog/search.htmllayouts/partials/tutorials/nav.htmlShared Algolia index: Both production and testing use the same "production" Algolia index
Testing workflow: Generates
search-index.jsonand uploads to testing S3, but never pushes to AlgoliaProduction-only updates: The hourly "Update Search Index" cron only fetches from production URLs (
pulumi.com/search-index.json) and updates the production indexValidation approach: Merge to master, wait for next hourly Algolia update (or manually trigger), then test on production.
Impact
Fixes searches for Alibaba Cloud provider and ~40 environment variable searches per month.