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" |
||
|---|---|---|
| .. | ||
| _default | ||
| api | ||
| partials | ||
| section | ||
| shortcodes | ||
| 404.html | ||
| LLMS-TXT-README.md | ||
| index.html | ||
| index.llmstxt.txt | ||
| robots.txt | ||
| sitemap.xml | ||