From 2b8152110b9a41672dd4dd5f528aa23caa8e88a3 Mon Sep 17 00:00:00 2001 From: aidanfnv Date: Thu, 8 May 2025 10:00:49 -0700 Subject: Fix broken links in Slang docs (#7039) This change fixes some broken links/anchors in the Slang docs that I found after running a link checker tool on the readthedocs site. Some of these were broken on GitHub Pages as well, such as anchors with apostrophes or docs that were moved. The doc writer change adds an explicit .html extension to Parameter links, so that Sphinx/RTD does not treat it as an anchor. --- source/slang/slang-doc-markdown-writer.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'source') diff --git a/source/slang/slang-doc-markdown-writer.cpp b/source/slang/slang-doc-markdown-writer.cpp index ae0ddc1a5..540f0c2e5 100644 --- a/source/slang/slang-doc-markdown-writer.cpp +++ b/source/slang/slang-doc-markdown-writer.cpp @@ -2166,6 +2166,7 @@ String DocMarkdownWriter::translateToMarkdownWithLinks(String text, bool strictC sb.append(Path::getPathWithoutExt(Path::getRelativePath( Path::getParentDirectory(m_currentPage->path), page->path))); + sb.append(".html"); if (sectionName.getLength()) sb << "#" << sectionName; sb.append(")"); -- cgit v1.2.3