Skip to content

Commit

Permalink
drop/redirect Linux-specific index and API mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
EricFromCanada authored and issyl0 committed Nov 1, 2021
1 parent c13ff5b commit ff21a5e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 26 deletions.
8 changes: 3 additions & 5 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand All @@ -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 <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 <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
Expand Down Expand Up @@ -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 <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 <formula>`.

```
GET https://formulae.brew.sh/api/analytics/${CATEGORY}/homebrew-core/${DAYS}.json
Expand Down
3 changes: 2 additions & 1 deletion formula_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
title: homebrew-core
layout: default
permalink: /formula/
redirect_from: /formula-linux/
---
<p>This is a listing of all packages available from the <a href="{{ site.taps.core.remote }}">{{ site.taps.core.repo }} tap</a> via the <a href="https://brew.sh">Homebrew</a> package manager for macOS.</p>
<p>This is a listing of all packages available from the <a href="{{ site.taps.core.remote }}">{{ site.taps.core.repo }} tap</a> via the <a href="https://brew.sh">Homebrew</a> package manager for macOS and Linux.</p>

<h2><a href="{{ site.baseurl }}/api/formula.json"><code>/api/formula.json</code> (JSON API)</a></h2>

Expand Down
20 changes: 0 additions & 20 deletions formula_linux_index.html

This file was deleted.

0 comments on commit ff21a5e

Please sign in to comment.