Skip to content

fix: restore Savanna and Classic titles in DocSearch - #109

Merged
Tushar-TG-14 merged 1 commit into
tigergraph:mainfrom
ngarakapati:fix/algolia-cloud-theme-selectors
Sep 8, 2026
Merged

fix: restore Savanna and Classic titles in DocSearch#109
Tushar-TG-14 merged 1 commit into
tigergraph:mainfrom
ngarakapati:fix/algolia-cloud-theme-selectors

Conversation

@ngarakapati

@ngarakapati ngarakapati commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a cloud-theme DocSearch selector set for Savanna and Cloud Classic pages, whose live HTML no longer includes .nav-panel-explore .context .title and wraps the page h1 in .page-header.
  • Those missing selectors were why production search showed null for labels and titles on Savanna/Classic results.

Test plan

  • Confirm config.json still uses versionless for Home and default for versioned docs
  • After merge, copy config.json into the DocSearch scraper working copy and run algolia/docsearch-scraper (already validated locally: 141,670 hits)
  • On https://www.tigergraph.com/docs, search for "invite users" and confirm left labels/titles are TigerGraph Savanna / TigerGraph Cloud Classic instead of null

Cloud theme pages no longer expose the explore-drawer selectors, so Algolia indexed null labels and page titles.
@netlify

netlify Bot commented Sep 4, 2026

Copy link
Copy Markdown

‼️ Deploy request for docs-tigergraph rejected.

Name Link
🔨 Latest commit 9106d37

@Tushar-TG-14

Copy link
Copy Markdown
Collaborator

@ngarakapati The selector changes look correct.
Could you confirm the local scraper output also shows the expected hierarchy.lvl0 / lvl1 values for both Savanna and Cloud Classic (for example, TigerGraph Savanna + the page title), rather than only confirming that the scraper completes with 141,670 hits? This would verify that the new XPath and .page-header > h1.page selectors are actually producing the intended DocSearch hierarchy.

@ngarakapati

ngarakapati commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

Confirmed locally and in production against live Savanna and Classic pages using the new cloud-theme selectors:

  • Savanna Invite Users → lvl0: TigerGraph Savanna, lvl1: Invite Users
  • Classic Manage Users in an Organization → lvl0: TigerGraph Cloud Classic, lvl1: Manage Users in an Organization

The XPath and .page-header > h1.page selectors produce the intended hierarchy. The old .nav-panel-explore / .doc > h1.page selectors still match nothing on those pages.

@Tushar-TG-14
Tushar-TG-14 merged commit 479e253 into tigergraph:main Sep 8, 2026
@ngarakapati
ngarakapati deleted the fix/algolia-cloud-theme-selectors branch September 8, 2026 19:56
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