Original PR: https://github.com/apple/pkl/pull/362 Author: @bioball Created: 3/25/2024 Status: ✅ Merged Merged: 3/26/2024 Merged by: @bioball
Base: main ← Head: pkl-doc-fix-source-link
main
pkl-doc-fix-source-link
b2be7df
27f734e
54 files changed (+77 additions, -69 deletions)
📝 pkl-doc/src/main/kotlin/org/pkl/doc/DocGenerator.kt (+1 -1) 📝 pkl-doc/src/main/kotlin/org/pkl/doc/DocPackageInfo.kt (+4 -8) 📝 pkl-doc/src/main/kotlin/org/pkl/doc/DocScope.kt (+5 -4) 📝 pkl-doc/src/main/kotlin/org/pkl/doc/PageGenerator.kt (+4 -3) 📝 pkl-doc/src/main/kotlin/org/pkl/doc/Util.kt (+14 -4) 📝 pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/Module Containing Spaces/index.html (+1 -1) 📝 pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/baseModule/index.html (+1 -1) 📝 pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classAnnotations/index.html (+1 -1) 📝 pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classComments/index.html (+1 -1) 📝 pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classInheritance/index.html (+1 -1) 📝 pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classMethodComments/index.html (+1 -1) 📝 pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classMethodModifiers/index.html (+1 -1) 📝 pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classMethodTypeAnnotations/index.html (+1 -1) 📝 pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classMethodTypeReferences/index.html (+1 -1) 📝 pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classPropertyAnnotations/index.html (+1 -1) 📝 pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classPropertyComments/index.html (+1 -1) 📝 pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classPropertyModifiers/index.html (+1 -1) 📝 pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classPropertyTypeAnnotations/index.html (+1 -1) 📝 pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classPropertyTypeReferences/index.html (+1 -1) 📝 pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classTypeConstraints/index.html (+1 -1)
pkl-doc/src/main/kotlin/org/pkl/doc/DocGenerator.kt
pkl-doc/src/main/kotlin/org/pkl/doc/DocPackageInfo.kt
pkl-doc/src/main/kotlin/org/pkl/doc/DocScope.kt
pkl-doc/src/main/kotlin/org/pkl/doc/PageGenerator.kt
pkl-doc/src/main/kotlin/org/pkl/doc/Util.kt
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/Module Containing Spaces/index.html
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/baseModule/index.html
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classAnnotations/index.html
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classComments/index.html
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classInheritance/index.html
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classMethodComments/index.html
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classMethodModifiers/index.html
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classMethodTypeAnnotations/index.html
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classMethodTypeReferences/index.html
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classPropertyAnnotations/index.html
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classPropertyComments/index.html
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classPropertyModifiers/index.html
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classPropertyTypeAnnotations/index.html
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classPropertyTypeReferences/index.html
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classTypeConstraints/index.html
...and 34 more files
Fixes an issue where source links are incorrectly URI encoded; i.e. https%3A//github.com instead of https://github.com.
https%3A//github.com
https://github.com
This was causing the browser to resolve these as relative to the enclosing page.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
No dependencies set.
The note is not visible to the blocked user.
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/362
Author: @bioball
Created: 3/25/2024
Status: ✅ Merged
Merged: 3/26/2024
Merged by: @bioball
Base:
main← Head:pkl-doc-fix-source-link📝 Commits (2)
b2be7dfFix source links in pkldoc27f734eAvoid double encoding source code uri📊 Changes
54 files changed (+77 additions, -69 deletions)
View changed files
📝
pkl-doc/src/main/kotlin/org/pkl/doc/DocGenerator.kt(+1 -1)📝
pkl-doc/src/main/kotlin/org/pkl/doc/DocPackageInfo.kt(+4 -8)📝
pkl-doc/src/main/kotlin/org/pkl/doc/DocScope.kt(+5 -4)📝
pkl-doc/src/main/kotlin/org/pkl/doc/PageGenerator.kt(+4 -3)📝
pkl-doc/src/main/kotlin/org/pkl/doc/Util.kt(+14 -4)📝
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/Module Containing Spaces/index.html(+1 -1)📝
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/baseModule/index.html(+1 -1)📝
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classAnnotations/index.html(+1 -1)📝
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classComments/index.html(+1 -1)📝
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classInheritance/index.html(+1 -1)📝
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classMethodComments/index.html(+1 -1)📝
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classMethodModifiers/index.html(+1 -1)📝
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classMethodTypeAnnotations/index.html(+1 -1)📝
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classMethodTypeReferences/index.html(+1 -1)📝
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classPropertyAnnotations/index.html(+1 -1)📝
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classPropertyComments/index.html(+1 -1)📝
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classPropertyModifiers/index.html(+1 -1)📝
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classPropertyTypeAnnotations/index.html(+1 -1)📝
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classPropertyTypeReferences/index.html(+1 -1)📝
pkl-doc/src/test/files/DocGeneratorTest/output/com.package1/1.2.3/classTypeConstraints/index.html(+1 -1)...and 34 more files
📄 Description
Fixes an issue where source links are incorrectly URI encoded; i.e.
https%3A//github.cominstead ofhttps://github.com.This was causing the browser to resolve these as relative to the enclosing page.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.