Update API ref link retrieval to support localized pages

pull/45846/head
Dipesh Rawat 2024-04-12 01:25:57 +01:00
parent 524a513f42
commit f433940b81
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,8 @@
<!-- Loop through sections -->
{{- range $apiRefSection := $apiRefSections.Sections -}}
{{- $apiRefDir := $apiRefSection.RelPermalink -}}
{{- $fragmentApiRefDir := split $apiRefDir "/docs" -}}
{{- $apiRefDir := printf "/docs%s" (index ($fragmentApiRefDir) 1) -}}
{{- $apiReferenceFiles := site.GetPage $apiRefDir -}}
<!-- Loop through API reference files -->