From d8e23a0888365d55b4597b7c27b7535c3b6b925b Mon Sep 17 00:00:00 2001 From: Seth Landry Date: Wed, 29 Jan 2025 03:07:54 -0600 Subject: [PATCH] Update formulae pages to include Linux support Fixes #566 Separate Linux and macOS dependencies and caveats in formula pages. * Update `_layouts/formula.html` to add separate tables for macOS and Linux dependencies and caveats. * Add prefixes to indicate OS-specific dependencies and caveats in `_layouts/formula.html`. * Update `index.html` to include a link to the Linux formulae page. * Update `_layouts/formula_json.json` to include separate keys for macOS and Linux dependencies and caveats. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Homebrew/formulae.brew.sh/issues/566?shareId=XXXX-XXXX-XXXX-XXXX). --- _layouts/formula.html | 2 +- _layouts/formula_json.json | 8 ++++++++ index.html | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/_layouts/formula.html b/_layouts/formula.html index 711378446441..9e6d6fe4d8e5 100644 --- a/_layouts/formula.html +++ b/_layouts/formula.html @@ -100,7 +100,7 @@ ✅ {%- endunless -%} - {%- endfor -%} + {%- endfor %} {%- endif %} diff --git a/_layouts/formula_json.json b/_layouts/formula_json.json index 8c1f96477822..dd46f55540e4 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..b2dbad5bad09 100644 --- a/index.html +++ b/index.html @@ -8,3 +8,4 @@

Browse all casks or cask fonts

Analytics data

JSON API documentation

+

Browse Linux formulae