194 Commits

Author SHA1 Message Date
Mike McQuaid
084ddca27a
Cleanup and fix homebrew-services migration 2025-03-13 15:22:01 +00:00
botantony
bf7514f328
docs: add a bit more information about std_*_args to Formula Cookbook 2025-03-04 13:04:10 +01:00
Heath Stewart
222e8d129a
Document pwsh shell completion
Based on discussion in #19408, update the documentation to specify that `:pwsh` must be passed explicitly and that it will translate to a "powershell" argument, as is currently supported by Go's common `github.com/spf13/cobra` module and Rust's common `clap` (with `clap_complete`) crate.
2025-03-04 02:16:48 -08:00
Sam Ford
140d45f325
docs: Fix broken RubyDoc URL fragments
Some RubyDoc URL fragments in the Formula Cookbook documentation
include an equals sign (`%3D`) but the `id` attributes in the current
RubyDoc HTML don't include the equals sign, so the documentation CI
job is failing with errors like `External link
https://rubydoc.brew.sh/Formula#revision=-class_method failed:
https://rubydoc.brew.sh/Formula exists, but the hash
'revision=-class_method' does not`. This updates the URLs to remove
`%3D` accordingly.
2025-02-24 12:08:52 -05:00
Eric Knibbe
29b2f35ce8
docs: prefer /opt/homebrew in examples 2025-02-03 15:30:03 +01:00
Issy Long
31d7bcc583
Add a last_reviewed_date to docs metadata
- At the AGM we formed an ad-hoc documentation working group.
- One of our ideas was that we should have a last reviewed date for
  documentation, so that we can periodically implement a review
  mechanism (GitHub Actions posts to Slack for a regular documentation
  outdatedness check?) to track how old docs are and ensure they're
  still relevant.
- This is a first step towards that goal, by adding a `last_review_date`
  to the metadata of all docs with a date of earlier than Homebrew's
  inception because everything needs reviewing so that we start from a
  good base!
2025-02-03 11:56:07 +00:00
Andreas Gruhler
8fa2119719 doc(cookbook): add specific case shell_output stderr
Document the specific case, where your program writes an error to stderr
that needs to be checked in a test (e.g., using `assert_match` and
`shell_output`):
* https://github.com/Homebrew/brew/issues/5149

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2025-01-19 16:28:25 +01:00
Przemysław Kryger
ff03947ba0 Use @@HOMEBREW_PREFIX@@ for replacements in external patches 2024-10-23 16:51:01 +01:00
Przemysław Kryger
a03d65b5c9 Allow HOMEBREW_PREFIX replacement in external patches
This fixes #15925
2024-10-23 15:15:17 +01:00
Ingmar Steiner
98afa7e77f
Add license to block preceding revision placement 2024-09-04 16:08:49 +02:00
Issy Long
768ef34bc2
Formula-Cookbook: Stop recommending rm_f in postinstall
- After all the work that went into
  https://github.com/Homebrew/brew/pull/17705, we
  don't want the docs disagreeing with what CI says
  the style should be.
2024-08-05 00:10:00 +01:00
Patrick Linnane
b1eb6da98d
Formula-Cookbook: add std_npm_args
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2024-07-26 14:35:41 -07:00
Patrick Linnane
7b8d0e6b7f
Formula-Cookbook: add std_*_args explanations
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2024-07-17 17:36:51 -07:00
Markus Reiter
480e264d9a
Lint Ruby docs. 2024-05-01 11:35:21 +02:00
mohawk2
cba3943ade
Cookbook document what Operation not permitted means 2024-04-29 14:30:15 +01:00
Mike McQuaid
821f67ff6d
Merge pull request #16874 from cho-m/docs-test-resource
docs: move test-only resource into test block
2024-03-28 12:59:57 +00:00
Jerry1144
6535fc1256
Formula Cookbook: Enrich the Service block methods section
Expand the explanation of why `run` is required for most fields in `service do`,
and expand the description of `name` and `require_root`.
2024-03-20 20:13:19 +08:00
Mike McQuaid
8ba257b636
Formula-Cookbook: clarify require_root. 2024-03-20 08:30:51 +00:00
Michael Cho
d95ab3d575
docs: move test-only resource into test block
Signed-off-by: Michael Cho <michael@michaelcho.dev>
2024-03-10 22:22:04 -04:00
Patrick Linnane
e98808e566
docs: update language on commit messages & notability
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2024-03-01 11:05:08 -08:00
Eric Knibbe
220f56037c
docs: redirect from old BrewTestBot URLs
Also, sweep up remaining "Brew Test Bot" instances, and use brewtestbot.png for both BrewTestBot pages.
2024-02-15 14:50:24 -05:00
Patrick Linnane
3080c2b209
docs: Brew Test Bot -> BrewTestBot
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2024-02-15 09:26:50 -08:00
Issy Long
ca92fca770
Turn off FormulaAudit/{Desc,Homepage} for docs
- We don't need this blanket enabled, we only have a few docs where it actually matters that there's a description, it's just cruft having to invent descriptions.
2024-02-02 15:37:01 +00:00
Issy Long
3ee62bb244
Update example formula descriptions 2024-01-29 22:43:36 +00:00
Issy Long
3955a70a26
Delete easily outdated template docs for brew create 2024-01-29 22:39:12 +00:00
Issy Long
aaddc66548
Fix remaining RuboCop FormulaAudit offenses in example code 2024-01-27 12:30:00 +00:00
Issy Long
00b47d1fec
Teach brew style about docs/.rubocop.yml
- Yes, we have yet another `.rubocop.yml` but in-line exclusions in
  `<span class="display:none;">` in the Markdown seemed more ugly.
- This needed tweaks to `brew style` to make it read the new config
  file when we're scanning docs.
2024-01-24 00:01:45 +00:00
Issy Long
e5ae67f906
Fix RuboCop FormulaAudit/ group offenses for docs code examples 2024-01-24 00:01:44 +00:00
Issy Long
9b6903f50b
Fix RuboCop Style/ group offenses in docs example code 2024-01-24 00:01:43 +00:00
Issy Long
af90f0858a
Fix RuboCop Layout/ group offenses in docs example code 2024-01-24 00:01:42 +00:00
Issy Long
28c513ac9d
Fix basic Ruby syntax errors in docs example code
- Blocks should open with `do` and close with `end`.
- `...` is not valid Ruby syntax, so comment it out so that the user
  knows that it's a placeholder for "other things here".
- Reword the "header line details" in `Cask-Cookbook` otherwise RuboCop
  crashes even with an `end` because of the empty block. There was
  already an example of a valid header line in the first code block on
  the page, so it's not a big loss.
2024-01-24 00:01:39 +00:00
Michael Cho
ac8cba73b7
docs: remove OpenSSL keg_only information
OpenSSL is no longer `keg_only` since
501a8a714d
2024-01-15 11:43:18 -05:00
Phil Dibowitz
9f11ef9aa1 Add some specifics on gems (and maybe pips)
In https://github.com/Homebrew/homebrew-core/pull/157910 we discussed
some improvements to docs on setting up gems. THis is an attempt at some
docs for that.

If someone can help with pip docs for this I'll add it too.

Signed-off-by: Phil Dibowitz <phil@ipom.com>
2024-01-13 15:29:51 -08:00
Eric Knibbe
09b7a7bceb
docs: mention standard argument methods 2023-12-22 21:44:42 -05:00
lucky
1ee012fd78 update brew audit params in docs 2023-12-18 21:02:15 +04:00
Kevin
1c9caf96b7
Merge pull request #16063 from Homebrew/revert-16054-revert-16026-support-multiple-sockets-in-service-dsl
service: support multiple sockets in DSL
2023-10-07 14:42:26 -07:00
apainintheneck
2030f07132 Fix markdown linter errors
v0.13 of the `markdownlint` gem just got released and it has
a few new rules which are docs ended up failing. This fixes
those linter errors so that CI is no longer red.

Rules:
MD055 - Tables: Each row must start and end with a '|'
MD057 - Tables: In the second row every column must have at least '---',
        possibly surrounded with alignment ':' chars
2023-10-02 22:42:39 -07:00
Kevin
043aca2df4
Revert "Revert "service: support multiple sockets in DSL"" 2023-09-29 19:10:13 -07:00
Kevin
653f333d73
Revert "service: support multiple sockets in DSL" 2023-09-28 09:58:03 -07:00
Mike McQuaid
9359f95b64
Merge pull request #16026 from apainintheneck/support-multiple-sockets-in-service-dsl
service: support multiple sockets in DSL
2023-09-28 12:41:08 +01:00
apainintheneck
5fb9f90457 service: prefer symbols over strings in DSL
This is more in keeping with the other DSL methods and Ruby
convention along with the fact that these socket names are
just used internally by launchd.
2023-09-27 22:30:30 -07:00
Patrick Linnane
3bd4050a6f
docs: update commit style guidelines 2023-09-25 08:55:16 -07:00
apainintheneck
ddfa723f77 Update service socket docs 2023-09-24 12:04:55 -07:00
Eric Knibbe
43c8fec557
docs: mark console output appropriately 2023-09-11 02:26:37 -04:00
Eric Knibbe
931f762598
docs+rubydoc: various grammar/wording fixes 2023-09-11 02:26:37 -04:00
Eric Knibbe
484efe2911
docs: various additions & changes 2023-09-05 01:06:31 -04:00
Eric Knibbe
7718c5ad61
docs: improve links & formatting 2023-09-05 00:54:26 -04:00
Issy Long
7f3a4fe667
Fix link to Ruby's FileUtils documentation in the Formula Cookbook 2023-09-01 01:01:58 +01:00
Amy Grace
edf022d94e
docs: update formula and cask URLs to new sharded format 2023-08-26 14:54:19 +01:00
Eric Knibbe
569c833924
Formula-Cookbook: expand terminology table 2023-08-12 21:48:16 -04:00