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 to homebrew-core for Linux #1664

Closed
wants to merge 1 commit into from

Conversation

Setland34
Copy link

@Setland34 Setland34 commented Jan 12, 2025

Fixes #566

Update formulae.brew.sh to support Linux formulae from homebrew-core.

  • Update _layouts/formula.html to add separate tables for macOS and Linux dependencies and separate sections for macOS and Linux caveats.
  • Update _layouts/formula_json.json to include OS-specific dependencies and caveats.
  • Update index.html to include Linux in the description.
  • Update _config.yml to use homebrew-core as the remote for Linux formulae.

For more details, open the Copilot Workspace session.

Fixes Homebrew#566

Update formulae.brew.sh to support Linux formulae from homebrew-core.

* Update `_layouts/formula.html` to add separate tables for macOS and Linux dependencies and separate sections for macOS and Linux caveats.
* Update `_layouts/formula_json.json` to include OS-specific dependencies and caveats.
* Update `index.html` to include Linux in the description.
* Update `_config.yml` to use `homebrew-core` as the remote for Linux formulae.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Homebrew/formulae.brew.sh/issues/566?shareId=XXXX-XXXX-XXXX-XXXX).
@SMillerDev SMillerDev closed this Jan 12, 2025
Copy link
Author

@Setland34 Setland34 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is an example of a review comment for the _layouts/formula.html file:


The _layouts/formula.html file has a comprehensive structure for displaying formula details. Here are a few suggestions for improvements:

  1. Code Readability: Consider adding comments for each major section in the HTML to improve readability for future maintainers.
  2. Conditional Rendering: The conditional checks for f.disabled and f.deprecated could be simplified by using a single condition and combining the CSS classes and titles.
  3. Accessibility: Ensure all links and interactive elements have appropriate ARIA labels for better accessibility.
  4. Reusability: Some of the repeated code blocks, such as the table rows for bottle and versions, could be refactored into separate includes to improve reusability and reduce code duplication.
  5. Performance: Minimize the use of inline styles and consider moving them to a separate CSS file for better performance and maintainability.

Overall, the file is well-structured, but these improvements can enhance maintainability and performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate to homebrew-core for Linux
2 participants