Fixes for pkldoc (#96)

* Add URI encoding to paths and fragments
* Render quotes around identifiers when appropriate
This commit is contained in:
Daniel Chao
2024-02-08 11:28:34 -08:00
committed by Dan Chao
parent bb90343ae0
commit dd9b47097f
126 changed files with 3234 additions and 2560 deletions

View File

@@ -2,7 +2,7 @@ amends "pkl:DocPackageInfo"
name = "com.externalpackage"
version = "1.2.3"
importUri = "https://pkl.io/"
importUri = "https://example.com/"
authors {
"publisher-externalpackage@group.apple.com"
}

View File

@@ -0,0 +1,2 @@
/// This is a module that has spaces in its name.
module com.package1.`Module Containing Spaces`

View File

@@ -17,7 +17,7 @@ import "../com.externalpackage/external1.pkl"
name = "com.package1"
version = "1.2.3"
importUri = "https://pkl.io/"
importUri = "https://example.com/"
authors {
"package1-publisher@group.apple.com"
}

View File

@@ -0,0 +1,4 @@
import "../com.package2/Module3.pkl"
/// Something something [Module3.`property {} four`].
prop: Module3.`Class Two {}`

View File

@@ -1,7 +1,10 @@
module com.package2.Module3
/// Something something [`property {} <> four`]
property3: String
`property {} <> four`: String
function function3(n: Int): String = n.toString()
class Class3 {
@@ -9,3 +12,7 @@ class Class3 {
function function3(n: Int): String = n.toString()
}
class `Class Two {}` {
prop: String
}