Reword verbage to "pantry" (#64)

* Reword verbage to "pantry"

* Fix verbage
This commit is contained in:
Daniel Chao
2024-02-07 19:40:43 -08:00
committed by GitHub
parent 5a311d3b86
commit 52bc9612ea
6 changed files with 7 additions and 7 deletions
@@ -256,7 +256,7 @@ By "precisely" we mean, that amending an object also can't "turn it into" an ins
== A new template == A new template
Now that you know about types, you can start writing your first 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. 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. Suppose you want to define what a live workshop for this tutorial looks like.
Consider this example: Consider this example:
@@ -116,7 +116,7 @@ internal class ClassPageGenerator(
} }
// example output: // 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() { override fun HTMLTag.renderPageTitle() {
val classScope = pageScope val classScope = pageScope
val moduleScope = classScope.parent!! val moduleScope = classScope.parent!!
@@ -105,7 +105,7 @@ internal class ModulePageGenerator(
} }
// example output: // 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() { override fun HTMLTag.renderPageTitle() {
val moduleScope = pageScope val moduleScope = pageScope
val packageScope = moduleScope.parent!! val packageScope = moduleScope.parent!!
@@ -86,7 +86,7 @@ internal class PackagePageGenerator(
} }
// example output: // 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() { override fun HTMLTag.renderPageTitle() {
+pageScope.name +pageScope.name
+" (" +" ("
@@ -367,8 +367,8 @@ class EmbeddedExecutorTest {
.contains("Evaluation timed out after 1 second(s).") .contains("Evaluation timed out after 1 second(s).")
} }
// As of 0.16, only Pkl Hub modules are cached. // Only packages are cached.
// Because this test doesn't import a Pkl Hub module, it doesn't really test // Because this test doesn't import a package, it doesn't really test
// that the `moduleCacheDir` option takes effect. // that the `moduleCacheDir` option takes effect.
@Test @Test
fun `evaluate a module with enabled module cache`(@TempDir tempDir: Path) { fun `evaluate a module with enabled module cache`(@TempDir tempDir: Path) {
+1 -1
View File
@@ -143,7 +143,7 @@ issueTracker: Uri
/// The packages depended on by this package. /// The packages depended on by this package.
/// ///
/// Used to display package dependencies and to create documentation links. /// 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)) dependencies: Listing<PackageDependency>(isDistinctBy((it) -> it.name))
/// Any extra attributes to add to the documentation. /// Any extra attributes to add to the documentation.