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" |
||
|---|---|---|
| .. | ||
| _markup | ||
| api.html | ||
| landing-influxdb.html | ||
| landing-influxdb.llmstxt.txt | ||
| list.html | ||
| page-list.json | ||
| section.html | ||
| single.html | ||
| tags-landing.html | ||