From 9106d37aef4ca15c99f08b94d74d1bcc312b37b1 Mon Sep 17 00:00:00 2001 From: nik_garakapati Date: Fri, 4 Sep 2026 22:15:39 +0530 Subject: [PATCH] fix: restore Savanna and Classic titles in DocSearch Cloud theme pages no longer expose the explore-drawer selectors, so Algolia indexed null labels and page titles. --- config.json | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/config.json b/config.json index 044a01b..c7fb8a4 100644 --- a/config.json +++ b/config.json @@ -102,7 +102,7 @@ "extra_attributes": { "latest": true }, - "selectors_key": "versionless" + "selectors_key": "cloud-theme" }, { "url": "https://www.tigergraph.com/docs/(?P.*?)/", @@ -114,7 +114,7 @@ "extra_attributes": { "latest": true }, - "selectors_key": "versionless" + "selectors_key": "cloud-theme" } ], "sitemap_urls": [ @@ -146,6 +146,19 @@ "lvl4": ".doc .sect3 > h4:first-child", "lvl5": ".doc .sidebarblock > .content > .title", "text": ".doc p, .doc dt, .doc td.content, .doc th.tableblock" + }, + "cloud-theme": { + "lvl0": { + "global": true, + "type": "xpath", + "selector": "normalize-space(substring-after(//head/title, '::'))" + }, + "lvl1": ".doc > .page-header > h1.page, .doc > h1.page", + "lvl2": ".doc .sect1 > h2:first-child", + "lvl3": ".doc .sect2 > h3:first-child", + "lvl4": ".doc .sect3 > h4:first-child", + "lvl5": ".doc .sidebarblock > .content > .title", + "text": ".doc p, .doc dt, .doc td.content, .doc th.tableblock" } }, "selectors_exclude": [],