181 Commits

Author SHA1 Message Date
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
Eric Knibbe
0f4b0028b5
Formula-Cookbook: expand environment var section 2023-08-08 08:22:59 -04:00
Eric Knibbe
2b8c37b04e
Formula-Cookbook: revise download strategy docs 2023-08-07 15:30:11 -04:00
Eric Knibbe
b6c49b7a2d
docs: assume core repositories are untapped 2023-07-24 09:55:56 -04:00
Patrick Linnane
c56669e9cd
various: fix miscellaneous typos 2023-07-18 08:52:49 -07:00
Kevin
946478aed4
Merge pull request #15396 from apainintheneck/custom-service-name
Custom service name
2023-05-17 22:09:31 -07:00
apainintheneck
f2adbf6613 service: change custom name DSL
After some discussion, we decided to change the DSL to get rid of
the `plist_name` and `service_name` methods which aren't meaningful
for most users.

The new DSL looks like this:

```rb
service do
  name macos: "name", linux: "name"
end
```

I also updated some specs here to reflect these changes.

There was some talk about maybe deprecating `plist_name` and `service_name`
but I think that's outside of the scope of this PR so I'm leaving
them as is for now. One benefit of this is that everything here is backwards
compatible.
2023-05-17 21:54:32 -07:00
apainintheneck
41c7eb7078 formula-cookbook: update service docs
Add more info about the `run` method.
- Adds array example
- Adds OS specific example
2023-05-13 23:41:18 -07:00
apainintheneck
ed24ef4860 docs/formula-cookbook: update service docs 2023-05-13 14:53:02 -07:00
apainintheneck
70451ea7b1 Add cop to stop bin in service block
The preferred method is opt_bin because that works
with the API and is more portable (works between versions).

Also removed the last example from the docs of `bin/"name"`
from the service block section
2023-04-04 20:00:30 -07:00
Shane Smith
6782adfe4c
Remove extra space 2023-03-15 10:21:11 -04:00
Shane Smith
d8f7e633f2
Fix keep_alive sample code in formula cookbook 2023-03-09 15:28:00 -05:00
Mike McQuaid
c209c0403d
Fix references to formula.json and cask.json
These would be stranded after `formula.jws.json`.
2023-02-24 16:46:15 +00:00
Jacob Ford
a591cad985
Formula-Cookbook: generalize locations
Co-authored-by: Eric Knibbe <enk3@outlook.com>
2023-02-21 15:27:44 -05:00