mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 14:20:35 +01:00
Reword verbage to "pantry" (#64)
* Reword verbage to "pantry" * Fix verbage
This commit is contained in:
@@ -256,7 +256,7 @@ By "precisely" we mean, that amending an object also can't "turn it into" an ins
|
||||
== A new template
|
||||
|
||||
Now that you know about types, you can start writing your first template.
|
||||
So far, you've written configurations with Pkl, either without a template, or using a template on Pkl Hub.
|
||||
So far, you've written configurations with Pkl, either without a template, or using the `acmecicd` template from xref:02_filling_out_a_template.adoc#amending-templates[Amending templates].
|
||||
It is often easiest to first write a (typical) configuration for which you want to create a template.
|
||||
Suppose you want to define what a live workshop for this tutorial looks like.
|
||||
Consider this example:
|
||||
|
||||
@@ -116,7 +116,7 @@ internal class ClassPageGenerator(
|
||||
}
|
||||
|
||||
// example output:
|
||||
// class HostAlias (io.k8s/api/core/v1/PodSpec:befa7c51) • Pkl Hub
|
||||
// HostAlias (pkg.pkl-lang.org/pkl-k8s/k8s@1.0.0) • Package Docs
|
||||
override fun HTMLTag.renderPageTitle() {
|
||||
val classScope = pageScope
|
||||
val moduleScope = classScope.parent!!
|
||||
|
||||
@@ -105,7 +105,7 @@ internal class ModulePageGenerator(
|
||||
}
|
||||
|
||||
// example output:
|
||||
// module PodSpec (io.k8s/api/core/v1:befa7c51) • Pkl Hub
|
||||
// module PodSpec (pkg.pkl-lang.org/pkl-k8s/k8s:1.0.0) • Package Docs
|
||||
override fun HTMLTag.renderPageTitle() {
|
||||
val moduleScope = pageScope
|
||||
val packageScope = moduleScope.parent!!
|
||||
|
||||
@@ -86,7 +86,7 @@ internal class PackagePageGenerator(
|
||||
}
|
||||
|
||||
// example output:
|
||||
// package io.k8s (befa7c51) • Pkl Hub
|
||||
// package pkg.pkl-lang.org/pkl-k8s/k8s (1.0.0) • Package Docs
|
||||
override fun HTMLTag.renderPageTitle() {
|
||||
+pageScope.name
|
||||
+" ("
|
||||
|
||||
@@ -367,8 +367,8 @@ class EmbeddedExecutorTest {
|
||||
.contains("Evaluation timed out after 1 second(s).")
|
||||
}
|
||||
|
||||
// As of 0.16, only Pkl Hub modules are cached.
|
||||
// Because this test doesn't import a Pkl Hub module, it doesn't really test
|
||||
// Only packages are cached.
|
||||
// Because this test doesn't import a package, it doesn't really test
|
||||
// that the `moduleCacheDir` option takes effect.
|
||||
@Test
|
||||
fun `evaluate a module with enabled module cache`(@TempDir tempDir: Path) {
|
||||
|
||||
@@ -143,7 +143,7 @@ issueTracker: Uri
|
||||
/// The packages depended on by this package.
|
||||
///
|
||||
/// Used to display package dependencies and to create documentation links.
|
||||
/// Set automatically for Pkl Hub packages.
|
||||
/// Set automatically for packages that are part of a docsite.
|
||||
dependencies: Listing<PackageDependency>(isDistinctBy((it) -> it.name))
|
||||
|
||||
/// Any extra attributes to add to the documentation.
|
||||
|
||||
Reference in New Issue
Block a user