docs: fix appending index.html.md to api reference links (#11327)

* docs: fix appending index.html.md to api reference links

* make hash in api reference lower case
This commit is contained in:
Shahed Nasser
2025-02-05 17:29:07 +02:00
committed by GitHub
parent bc53716d8d
commit a655b49a7d
6 changed files with 11314 additions and 11218 deletions
@@ -81,7 +81,8 @@ export const apiRefLlmsGenerator: CustomLlmsGenerator<
Object.entries(fileYaml).forEach(
([httpMethod, operation]: [string, any]) => {
const hash = `${slugify(operation.tags[0])}_${slugify(operation.operationId)}`
const hash =
`${slugify(operation.tags[0])}_${slugify(operation.operationId)}`.toLowerCase()
content += `- [${httpMethod.toUpperCase()} ${oasPath}](${options?.baseUrl}#${hash})\n`
}