From a646b47084be5c4a7daf4e35c9037ba0a679273f Mon Sep 17 00:00:00 2001 From: Naomi Pentrel <5212232+npentrel@users.noreply.github.com> Date: Sat, 16 Sep 2023 12:39:36 -0400 Subject: [PATCH] Index for search based on sitemap (#1851) --- docsearch.json | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/docsearch.json b/docsearch.json index ab434f7207..a5c21057f4 100644 --- a/docsearch.json +++ b/docsearch.json @@ -1 +1,16 @@ -{"index_name":"docsearch","start_urls":["https://docs.viam.com/"],"selectors":{"lvl0":".td-content h1","lvl1":".td-content .lead","lvl2":".td-content h2","lvl3":".td-content h3","lvl4":".td-content h4","lvl5":".td-content h5","text":".td-content p, .td-content div, .td-content ul li, .td-content ol li, .td-content table tbody tr"},"selectors_exclude": ["#edit-on-github"]} \ No newline at end of file +{ + "index_name": "docsearch", + "sitemap_urls": ["https://docs.viam.com/sitemap.xml"], + "start_urls": ["https://docs.viam.com/"], + "use_anchors": true, + "selectors": { + "lvl0": ".td-content h1", + "lvl1": ".td-content .lead", + "lvl2": ".td-content h2", + "lvl3": ".td-content h3", + "lvl4": ".td-content h4", + "lvl5": ".td-content h5", + "text": ".td-content p, .td-content div, .td-content ul li, .td-content ol li, .td-content table tbody tr" + }, + "selectors_exclude": [".footer", "#edit-on-github"] +}