docs-v2/layouts
Jason Stirnaman 74c33e9483
fix(ci): add path offset for PR preview subdirectory baseURL (#6662)
When PR preview builds use a subdirectory baseURL like
/docs-v2/pr-preview/pr-XXXX/, shortcodes that parse .RelPermalink
to detect product context fail because the path has extra segments.

This fix:
- Adds config/pr-preview/params.yml with prPreviewPathOffset: 3
- Updates workflow to use -e pr-preview environment
- Updates api-endpoint, influxdb/host, and children shortcodes to
  use the offset when indexing path segments
- Adds nil-safety with default fallback for placeholder_host

Normal builds are unaffected (offset defaults to 0).
2025-12-22 10:03:27 -06:00
..
_default Feature: Generate documentation in LLM-friendly Markdown (#6555) 2025-12-01 12:32:28 -06:00
partials Feature: Generate documentation in LLM-friendly Markdown (#6555) 2025-12-01 12:32:28 -06:00
section Feature: Generate documentation in LLM-friendly Markdown (#6555) 2025-12-01 12:32:28 -06:00
shortcodes fix(ci): add path offset for PR preview subdirectory baseURL (#6662) 2025-12-22 10:03:27 -06:00
404.html Initial Kapa.ai chat integration. 2025-02-12 13:48:29 -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