diff --git a/_includes/formula.html b/_includes/formula.html index fb63c3e7ccd2..39055d784b3d 100644 --- a/_includes/formula.html +++ b/_includes/formula.html @@ -1,4 +1,3 @@ - {%- assign include_fdata = site.data.formula[include.data_fname] -%} {%- unless include_fdata -%} diff --git a/_layouts/formula.html b/_layouts/formula.html index 711378446441..7afd00196668 100644 --- a/_layouts/formula.html +++ b/_layouts/formula.html @@ -233,3 +233,42 @@ {%- endfor -%} {%- endfor %} + + +{%- if f.variations.size > 0 -%} +

Dependencies:

+ + + + + + {%- for variation in f.variations -%} + + + + + {%- endfor -%} +
OSDependencies
{{ variation[0] | capitalize }} + {%- for dep in variation[1].dependencies -%} + {{ dep | escape }} + {%- unless forloop.last -%}, {% endunless -%} + {%- endfor -%} +
+{%- endif -%} + + +{%- if f.caveats -%} +

Caveats:

+ + + + + + {%- for variation in f.variations -%} + + + + + {%- endfor -%} +
OSCaveats
{{ variation[0] | capitalize }}{{ variation[1].caveats | escape }}
+{%- endif -%} diff --git a/_layouts/formula_json.json b/_layouts/formula_json.json index 8c1f96477822..d68b7d5d3e68 100644 --- a/_layouts/formula_json.json +++ b/_layouts/formula_json.json @@ -36,4 +36,12 @@ {%- endunless -%} {%- endfor -%} }, +"dependencies":{ + "macos":{{ fdata.dependencies.macos | jsonify }}, + "linux":{{ fdata.dependencies.linux | jsonify }} +}, +"caveats":{ + "macos":{{ fdata.caveats.macos | jsonify }}, + "linux":{{ fdata.caveats.linux | jsonify }} +}, "generated_date":"{{ "today" | date: "%F" }}"} diff --git a/index.html b/index.html index 3c3b10431ae3..220a703f0b64 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ --- layout: default --- -

Homebrew Formulae is an online package browser for Homebrew – the macOS (and Linux) package manager. For more information on how to install and use Homebrew see our homepage.

+

Homebrew Formulae is an online package browser for Homebrew – the macOS and Linux package manager. For more information on how to install and use Homebrew see our homepage.

Browse all formulae

Browse all casks or