From c5fde1734d9a856865f256bd6b59382957c13d0b Mon Sep 17 00:00:00 2001 From: Justin Su Date: Wed, 21 Aug 2024 03:22:23 -0400 Subject: [PATCH] docs(config, preset): fix Buf module config docs and No Empty Icons preset (#6200) * docs(config): Buf module is shown even if `buf` CLI is not installed * docs(preset): make Buf format string consistent with other modules --- docs/config/README.md | 5 +---- docs/public/presets/toml/no-empty-icons.toml | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/config/README.md b/docs/config/README.md index 279dd0fc..ac2a347e 100644 --- a/docs/config/README.md +++ b/docs/config/README.md @@ -579,10 +579,7 @@ discharging_symbol = '💦 ' ## Buf -The `buf` module shows the currently installed version of [Buf](https://buf.build). By default, the module is shown if all of the following conditions are met: - -- The [`buf`](https://github.com/bufbuild/buf) CLI is installed. -- The current directory contains a [`buf.yaml`](https://docs.buf.build/configuration/v1/buf-yaml), [`buf.gen.yaml`](https://docs.buf.build/configuration/v1/buf-gen-yaml), or [`buf.work.yaml`](https://docs.buf.build/configuration/v1/buf-work-yaml) configuration file. +The `buf` module shows the currently installed version of [Buf](https://buf.build). By default, the module is shown if the current directory contains a [`buf.yaml`](https://docs.buf.build/configuration/v1/buf-yaml), [`buf.gen.yaml`](https://docs.buf.build/configuration/v1/buf-gen-yaml), or [`buf.work.yaml`](https://docs.buf.build/configuration/v1/buf-work-yaml) configuration file. ### Options diff --git a/docs/public/presets/toml/no-empty-icons.toml b/docs/public/presets/toml/no-empty-icons.toml index f18b26fc..5174e1ff 100644 --- a/docs/public/presets/toml/no-empty-icons.toml +++ b/docs/public/presets/toml/no-empty-icons.toml @@ -1,5 +1,5 @@ [buf] -format = '(with [$symbol$version ]($style))' +format = '(with [$symbol($version )]($style))' [bun] format = '(via [$symbol($version )]($style))'