mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
Convert org.pkl.core.Release into a record (#812)
Also, add doc comments to some methods.
This commit is contained in:
@@ -49,7 +49,7 @@ class CliDocGenerator(private val options: CliDocGeneratorOptions) : CliCommand(
|
||||
sourceCodeUrlScheme =
|
||||
if (options.isTestMode)
|
||||
"https://github.com/apple/pkl/blob/0.24.0/stdlib%{path}#L%{line}-L%{endLine}"
|
||||
else Release.current().sourceCode().sourceCodeUrlScheme,
|
||||
else Release.current().sourceCode().sourceCodeUrlScheme(),
|
||||
documentation =
|
||||
if (options.isTestMode) URI("https://pages.github.com/apple/pkl/stdlib/pkl/0.24.0/")
|
||||
else
|
||||
|
||||
@@ -210,7 +210,7 @@ internal class SiteScope(
|
||||
val path = "/stdlib/${name.substring(4)}.pkl"
|
||||
Release.current()
|
||||
.sourceCode()
|
||||
.sourceCodeUrlScheme
|
||||
.sourceCodeUrlScheme()
|
||||
.replaceSourceCodePlaceholders(path, sourceLocation)
|
||||
.toUri()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user