Brew.sh screenshot

Brew.sh

Author Avatar Theme by Homebrew
Updated: 20 May 2025
141 Stars

The Homebrew homepage

Overview:

The brew.sh webpage uses Jekyll and has a template for the index at _layouts/index.html. The webpage also supports translations through GitHub Pull Requests.

Features:

  • Jekyll: The webpage is built using Jekyll, a static site generator.
  • Template: The index page of the website has a template located at _layouts/index.html.
  • Translations: The webpage supports multiple translations for different languages.

Installation:

To add a new translation to the webpage, follow these steps:

  1. Copy index_fr.html to index_{langcode}.html and update the lang and permalink values.
  2. Copy _data/locales/en.yml to _data/locales/{langcode}.yml and update its initial language code.
  3. Change the values of the English strings to the new, translated language strings.
  4. Run bundle install and bundler exec jekyll serve to see the translated webpage.
  5. Open http://localhost:4000/ and switch to your language to view the translated webpage.

Summary:

The brew.sh webpage uses Jekyll as its static site generator and has a template for the index page. It also supports translations for different languages through GitHub Pull Requests. To add a new translation, specific steps need to be followed, including copying the necessary files and updating language codes and strings. By running bundle install and bundler exec jekyll serve, the translated webpage can be viewed at http://localhost:4000/.