Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate Linux data source to Homebrew/homebrew-core #569

Merged
merged 20 commits into from
Nov 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
e10833c
README: Remove mentions of Homebrew/linuxbrew-core
issyl0 Oct 23, 2021
ba1f162
index: Browse all formulae, no longer separate macOS and Linux
issyl0 Oct 23, 2021
57cc062
Rakefile: Remove unneeded Linux-specific formulae tasks
issyl0 Oct 23, 2021
41a43e9
`git rm -rf formula-linux/` - what breaks?
issyl0 Oct 23, 2021
7275d98
ci: Use the `formulae` Rake task since `all_formulae` is gone
issyl0 Oct 23, 2021
7d97dfb
layouts/analytics: Stop routing Linux formulae links to `formula-linux/`
issyl0 Oct 23, 2021
2bae058
layouts/formula: Remove `if formula_path == "formula-linux"` conditio…
issyl0 Oct 23, 2021
fd772c6
git rm -rf api/{formula,bottle}-linux
issyl0 Oct 23, 2021
398df2d
script/generate: Everything is in `formula` or `bottle` now
issyl0 Oct 23, 2021
fcfe97d
git rm -rf _data/{formula,bottle}-linux
EricFromCanada Oct 24, 2021
c13ff5b
relocate Linux analytics & data to homebrew-core
EricFromCanada Oct 24, 2021
ff21a5e
drop/redirect Linux-specific index and API mentions
EricFromCanada Oct 24, 2021
e4e70bd
drop Linux-specific data and API
EricFromCanada Oct 24, 2021
20153a6
redirect from /formula-linux/<name> to /formula/<name>
EricFromCanada Oct 24, 2021
f1cf9cc
formula: Show macOS and Linux analytics in separate tables
issyl0 Oct 30, 2021
45dcef1
formula: small markup fixes
EricFromCanada Oct 30, 2021
3deba30
formula: revise links to API & formula source
EricFromCanada Oct 31, 2021
79f6d70
bottle_json: simplify
EricFromCanada Oct 31, 2021
8ff68c1
cask_json: compress markup into for loop
EricFromCanada Oct 31, 2021
c4152e8
formula_json: compress markup into for loops, add analytics-linux
EricFromCanada Oct 31, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:
bundle install --jobs 4 --retry 3

- name: Generate site
run: bundle exec rake all_formulae cask
run: bundle exec rake formulae cask
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[Homebrew Formulae](https://formulae.brew.sh) is an online package browser for [Homebrew](https://brew.sh).

It displays all packages in the [Homebrew/homebrew-core](https://github.com/Homebrew/homebrew-core), [Homebrew/homebrew-cask](https://github.com/Homebrew/homebrew-cask) and [Homebrew/linuxbrew-core](https://github.com/Homebrew/linuxbrew-core) taps. A [GitHub Action](https://github.com/Homebrew/formulae.brew.sh/blob/master/.github/workflows/scheduled.yml) is run periodically which pulls changes from each tap and deploys the site to GitHub Pages.
It displays all packages in the [Homebrew/homebrew-core](https://github.com/Homebrew/homebrew-core) and [Homebrew/homebrew-cask](https://github.com/Homebrew/homebrew-cask). A [GitHub Action](https://github.com/Homebrew/formulae.brew.sh/blob/master/.github/workflows/scheduled.yml) is run periodically which pulls changes from each tap and deploys the site to GitHub Pages.

## JSON API
It also provides a JSON API for all packages (or individual packages) in each tap and their related analytics. This JSON data is used for the creation of the HTML resources on this site.
Expand Down
9 changes: 1 addition & 8 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ task :formulae, [:os, :tap] do |task, args|
ENV["HOMEBREW_NO_COLOR"] = "1"
sh "brew", "ruby", "script/generate.rb", args[:os], args[:tap]
end
CLOBBER.include FileList[%w[_data/formula _data/*_canonical.json api/formula formula
_data/formula-linux api/formula-linux formula-linux]]
CLOBBER.include FileList[%w[_data/formula _data/formula_canonical.json api/formula formula]]

desc "Dump cask data"
task :cask, [:tap] do |task, args|
Expand Down Expand Up @@ -74,7 +73,6 @@ def generate_analytics_files(os)

if os == "linux"
analytics_data_path = "_data/analytics-linux"
core_tap_name = "linuxbrew-core"
formula_analytics_os_arg = "--linux"
end

Expand Down Expand Up @@ -147,11 +145,6 @@ task :linux_analytics do
Rake::Task["analytics"].tap(&:reenable).invoke("linux")
end

desc "Dump all formulae (macOS and Linux)"
task all_formulae: :formulae do
Rake::Task["formulae"].tap(&:reenable).invoke("linux")
end

desc "Dump all analytics (macOS and Linux)"
task all_analytics: :analytics do
Rake::Task["analytics"].tap(&:reenable).invoke("linux")
Expand Down
5 changes: 0 additions & 5 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ taps:
name: Homebrew/cask
fullname: Homebrew/homebrew-cask
remote: https://github.com/Homebrew/homebrew-cask
linux:
repo: core
name: Homebrew/core
fullname: Homebrew/linuxbrew-core
remote: https://github.com/Homebrew/linuxbrew-core

logo: https://brew.sh/assets/img/homebrew-256x256.png

Expand Down
58 changes: 0 additions & 58 deletions _data/bottle-linux/a2ps.json

This file was deleted.

25 changes: 0 additions & 25 deletions _data/bottle-linux/a52dec.json

This file was deleted.

34 changes: 0 additions & 34 deletions _data/bottle-linux/aacgain.json

This file was deleted.

25 changes: 0 additions & 25 deletions _data/bottle-linux/aalib.json

This file was deleted.

92 changes: 0 additions & 92 deletions _data/bottle-linux/aamath.json

This file was deleted.

37 changes: 0 additions & 37 deletions _data/bottle-linux/aardvark_shell_utils.json

This file was deleted.

Loading