From 0ae9e0c5c027fde7bf1289361935ebbe89648be1 Mon Sep 17 00:00:00 2001 From: Daniel Chao Date: Thu, 29 Feb 2024 11:02:36 -0800 Subject: [PATCH] Add homebrew instructions to docs (#270) --- docs/modules/pkl-cli/pages/index.adoc | 51 +++++++++++++-------------- 1 file changed, 25 insertions(+), 26 deletions(-) diff --git a/docs/modules/pkl-cli/pages/index.adoc b/docs/modules/pkl-cli/pages/index.adoc index 75d5fb89..2bd2b9c0 100644 --- a/docs/modules/pkl-cli/pages/index.adoc +++ b/docs/modules/pkl-cli/pages/index.adoc @@ -54,32 +54,31 @@ and runs complex Pkl code slower than the native executables. All flavors are built from the same codebase and undergo the same automated testing. Except where noted otherwise, the rest of this page discusses the native executables. -//TODO uncomment this after brew formula is merged and available -// [[homebrew]] -// === Homebrew -// -// Release versions can be installed with {uri-homebrew}[Homebrew]. -// -// ifdef::is-release-version[] -// To install Pkl, run: -// -// [source,shell] -// ---- -// brew install pkl -// ---- -// -// To update Pkl, run: -// -// [source,shell] -// ---- -// brew update -// brew upgrade pkl # or just `brew upgrade` -// ---- -// endif::[] -// -// ifndef::is-release-version[] -// For instructions, switch to a release version of this page. -// endif::[] +[[homebrew]] +=== Homebrew + +Release versions can be installed with {uri-homebrew}[Homebrew]. + +ifdef::is-release-version[] +To install Pkl, run: + +[source,shell] +---- +brew install pkl +---- + +To update Pkl, run: + +[source,shell] +---- +brew update +brew upgrade pkl # or just `brew upgrade` +---- +endif::[] + +ifndef::is-release-version[] +For instructions, switch to a release version of this page. +endif::[] [[download]] === Download