From ff21a5efde0d6945de18a4892d065d2de47a83b5 Mon Sep 17 00:00:00 2001 From: EricFromCanada Date: Sun, 24 Oct 2021 11:49:21 -0400 Subject: [PATCH] drop/redirect Linux-specific index and API mentions --- docs/api.md | 8 +++----- formula_index.html | 3 ++- formula_linux_index.html | 20 -------------------- 3 files changed, 5 insertions(+), 26 deletions(-) delete mode 100644 formula_linux_index.html diff --git a/docs/api.md b/docs/api.md index d6757ae860c0..05c6aa0529da 100644 --- a/docs/api.md +++ b/docs/api.md @@ -10,11 +10,10 @@ redirect_from: ## Metadata ### List formulae metadata for all {{ site.taps.core.repo }} or {{ site.taps.cask.repo }} formulae -List the `brew info --json --all` output for all current {{ site.taps.core.fullname }}, {{ site.taps.linux.fullname }} or {{ site.taps.cask.fullname }} formulae. +List the `brew info --json --all` output for all current {{ site.taps.core.fullname }} or {{ site.taps.cask.fullname }} formulae. ``` GET https://formulae.brew.sh/api/formula.json -GET https://formulae.brew.sh/api/formula-linux.json GET https://formulae.brew.sh/api/cask.json ``` @@ -36,11 +35,10 @@ GET https://formulae.brew.sh/api/versions-casks.json {% include api-samples/versions_casks.md %} ### Get formula metadata for a {{ site.taps.core.repo }} formula -Get the `brew info --json --formula ` output for a single, current {{ site.taps.core.fullname }} or {{ site.taps.linux.fullname }} formula with extra keys containing analytics data and generation date. +Get the `brew info --json --formula ` output for a single, current {{ site.taps.core.fullname }} formula with extra keys containing analytics data and generation date. ``` GET https://formulae.brew.sh/api/formula/${FORMULA}.json -GET https://formulae.brew.sh/api/formula-linux/${FORMULA}.json ``` #### Variables @@ -116,7 +114,7 @@ GET https://formulae.brew.sh/api/analytics-linux/${CATEGORY}/${DAYS}.json {% include api-samples/analytics_install_30d.md %} ### List analytics events for all {{ site.taps.core.repo }} formulae -List all the {{ site.taps.core.fullname }} or {{ site.taps.linux.fullname }} formulae's analytics events for a specified category over a number of days, grouped by formula name. This is the data source for `brew info --analytics --formula `. +List all the {{ site.taps.core.fullname }} formulae's analytics events for a specified category over a number of days, grouped by formula name. This is the data source for `brew info --analytics --formula `. ``` GET https://formulae.brew.sh/api/analytics/${CATEGORY}/homebrew-core/${DAYS}.json diff --git a/formula_index.html b/formula_index.html index 32cf5d85164c..a0cd87586644 100644 --- a/formula_index.html +++ b/formula_index.html @@ -2,8 +2,9 @@ title: homebrew-core layout: default permalink: /formula/ +redirect_from: /formula-linux/ --- -

This is a listing of all packages available from the {{ site.taps.core.repo }} tap via the Homebrew package manager for macOS.

+

This is a listing of all packages available from the {{ site.taps.core.repo }} tap via the Homebrew package manager for macOS and Linux.

/api/formula.json (JSON API)

diff --git a/formula_linux_index.html b/formula_linux_index.html deleted file mode 100644 index dbb016a8724f..000000000000 --- a/formula_linux_index.html +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: linuxbrew-core -layout: default -permalink: /formula-linux/ ---- -

This is a listing of all packages available from the {{ site.taps.linux.repo }} tap via the Homebrew package manager for Linux.

- -

/api/formula-linux.json (JSON API)

- - - {%- assign sorted_formulae = site.data.formula-linux | sort -%} - {%- for f in sorted_formulae -%} - - {%- assign formula = f[1] -%} - {%- assign formula_path = "formula-linux" -%} - {%- include formula.html formula_path=formula_path formula=formula -%} - - {%- endfor -%} -
-