mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Update example formula descriptions
This commit is contained in:
parent
3955a70a26
commit
3ee62bb244
@ -689,7 +689,7 @@ If not inferable, specify which of Homebrew’s built-in download strategies to
|
|||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
class Nginx < Formula
|
class Nginx < Formula
|
||||||
desc "Some package"
|
desc "HTTP(S) server and reverse proxy, and IMAP/POP3 proxy server"
|
||||||
homepage "https://nginx.org/"
|
homepage "https://nginx.org/"
|
||||||
url "https://nginx.org/download/nginx-1.23.2.tar.gz", using: :homebrew_curl
|
url "https://nginx.org/download/nginx-1.23.2.tar.gz", using: :homebrew_curl
|
||||||
sha256 "a80cc272d3d72aaee70aa8b517b4862a635c0256790434dbfc4d618a999b0b46"
|
sha256 "a80cc272d3d72aaee70aa8b517b4862a635c0256790434dbfc4d618a999b0b46"
|
||||||
|
@ -91,7 +91,7 @@ Installing a standard Node module based formula would look like this:
|
|||||||
require "language/node"
|
require "language/node"
|
||||||
|
|
||||||
class Foo < Formula
|
class Foo < Formula
|
||||||
desc "Description"
|
desc "An example formula"
|
||||||
homepage "https://example.com"
|
homepage "https://example.com"
|
||||||
url "https://registry.npmjs.org/foo/-/foo-1.4.2.tgz"
|
url "https://registry.npmjs.org/foo/-/foo-1.4.2.tgz"
|
||||||
sha256 "abc123abc123abc123abc123abc123abc123abc123abc123abc123abc123abc1"
|
sha256 "abc123abc123abc123abc123abc123abc123abc123abc123abc123abc123abc1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user