docs-v2/layouts/api
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
..
all-endpoints.html feat(api): add All endpoints page and fix v2 menu warnings 2026-01-14 17:27:39 -06:00
list.html fix(api): use reliable path extraction for dual download buttons 2026-02-06 11:15:09 -06:00
section.html fix(api): use reliable path extraction for dual download buttons 2026-02-06 11:15:09 -06:00
single.html fix(api): add context-aware download buttons for dual-API products 2026-02-06 11:06:21 -06:00