mirror of
https://github.com/apple/pkl.git
synced 2026-04-17 14:09:48 +02:00
Fixes for pkldoc (#96)
* Add URI encoding to paths and fragments * Render quotes around identifiers when appropriate
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
2
pkl-doc/src/test/files/DocGeneratorTest/input/com.package1/Module Containing Spaces.pkl
vendored
Normal file
2
pkl-doc/src/test/files/DocGeneratorTest/input/com.package1/Module Containing Spaces.pkl
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/// This is a module that has spaces in its name.
|
||||
module com.package1.`Module Containing Spaces`
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
4
pkl-doc/src/test/files/DocGeneratorTest/input/com.package1/referenceToExternalPackage.pkl
vendored
Normal file
4
pkl-doc/src/test/files/DocGeneratorTest/input/com.package1/referenceToExternalPackage.pkl
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import "../com.package2/Module3.pkl"
|
||||
|
||||
/// Something something [Module3.`property {} four`].
|
||||
prop: Module3.`Class Two {}`
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user