Skip to content

Commit

Permalink
Build: Add sitemap_urls to Typesense to fix some missing API pages
Browse files Browse the repository at this point in the history
Follows-up 6cf42a4. Some pages aren't getting indexed because,
unlike api.jqueryui.com, on api.jqueryui.com there isn't a listing of
all pages. This means it relies on the category pages to discover them,
but these are excluded via `stop_urls` which means the categories
are never even opened, much less followed and/or indexed.

Fix this by feeding the sitemaps directly to ensure full discovery
of all posts and pages.

Ref jquery/infrastructure-puppet#66
Ref jquery/jquerymobile.com@6651b1b
  • Loading branch information
Krinkle committed Oct 31, 2024
1 parent b36e3e2 commit b11c557
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docsearch.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
{ "url": "https://api.jqueryui.com", "selectors_key": "api", "page_rank": 20 },
{ "url": "https://jqueryui.com", "page_rank": 10 }
],
"sitemap_urls": [
"https://jqueryui.com/wp-sitemap.xml",
"https://api.jqueryui.com/wp-sitemap.xml"
],
"// stop_urls": [
"// Exclude URLs containing '?' such as /themeroller/?..."
],
Expand Down

0 comments on commit b11c557

Please sign in to comment.