docs-v2/layouts
Jason Stirnaman 345bdc3058 fix(api): use reliable path extraction for dual download buttons
Replace unreliable findRE regex with split-based path extraction for
version detection in API section index pages. The previous regex
"[^/]+.*?" was inconsistent and could fail to extract version correctly.

Changes:
- layouts/_default/api.html: Add dual-button logic for clustered/cloud-dedicated
  section index pages using split-based URL path extraction
- layouts/api/list.html: Replace findRE with split for version extraction
- layouts/api/section.html: Add dual-button logic matching api.html

The split approach extracts path segments reliably:
/influxdb3/clustered/api/ → ["", "influxdb3", "clustered", "api", ""]
$version = index 2 = "clustered"
2026-02-06 11:15:09 -06:00
..
_default fix(api): use reliable path extraction for dual download buttons 2026-02-06 11:15:09 -06:00
api fix(api): use reliable path extraction for dual download buttons 2026-02-06 11:15:09 -06:00
partials feat(api): update API layouts and UI components 2026-02-03 20:11:42 -06:00
section Feature: Generate documentation in LLM-friendly Markdown (#6555) 2025-12-01 12:32:28 -06:00
shortcodes Merge origin/master into docs-v2-pr6622 2026-01-21 10:31:56 -06:00
404.html Initial Kapa.ai chat integration. 2025-02-12 13:48:29 -06:00
LLMS-TXT-README.md feat(api): update API layouts and UI components 2026-02-03 20:11:42 -06:00
index.html updated explorer messaging from beta to ga (#6152) 2025-06-26 11:36:55 -05:00
index.llmstxt.txt Feature: Generate documentation in LLM-friendly Markdown (#6555) 2025-12-01 12:32:28 -06:00
robots.txt chore(robots): Add a sitemap declaration for robots 2025-10-09 12:16:38 -05:00
sitemap.xml add JSON page lists for use in the v3 UI (#5363) 2024-03-14 09:32:04 -06:00