feat: full site

This commit is contained in:
2025-09-21 23:31:15 +03:00
parent 6de65bca11
commit c63ef78b03
38 changed files with 1541 additions and 1481 deletions

0
docs/.gitkeep Normal file
View File

View File

@@ -1,19 +0,0 @@
source "https://rubygems.org"
ruby "3.4.5"
gem "jekyll", "~> 4.4"
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.17"
gem "jekyll-seo-tag", "~> 2.8"
gem "jekyll-sitemap", "~> 1.4"
end
platforms :mingw, :x64_mingw, :mswin, :jruby do
gem "tzinfo", ">= 1", "< 3"
gem "tzinfo-data"
end
gem "wdm", "~> 0.2", platforms: [:mingw, :x64_mingw, :mswin]
gem "http_parser.rb", "~> 0.6.0", platforms: [:jruby]

View File

@@ -1,53 +0,0 @@
title: ivuorinen/homebrew-tap
email: your-email@example.com
description: >-
Homebrew Tap containing custom formulae for various tools and utilities.
Automatically updated documentation for all available formulae.
baseurl: "/homebrew-tap"
url: "https://ivuorinen.github.io"
repository: ivuorinen/homebrew-tap
markdown: kramdown
kramdown:
input: GFM
syntax_highlighter: rouge
syntax_highlighter_opts:
css_class: 'highlight'
span:
line_numbers: false
block:
line_numbers: true
plugins:
- jekyll-feed
- jekyll-seo-tag
- jekyll-sitemap
collections:
formulae:
output: true
permalink: /formula/:name/
defaults:
- scope:
path: ""
type: "pages"
values:
layout: "default"
- scope:
path: ""
type: "formulae"
values:
layout: "formula"
exclude:
- Gemfile
- Gemfile.lock
- node_modules
- vendor/bundle/
- vendor/cache/
- vendor/gems/
- vendor/ruby/
- scripts/
- .sass-cache/
- .jekyll-cache/

0
docs/_data/.gitkeep Normal file
View File

View File

@@ -1,34 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ page.title | default: site.title }}</title>
{% seo %}
<link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}">
</head>
<body>
<header class="site-header">
<div class="wrapper">
<h1><a href="{{ '/' | relative_url }}">{{ site.title }}</a></h1>
<nav>
<a href="{{ '/' | relative_url }}">Home</a>
<a href="{{ '/formulae' | relative_url }}">Formulae</a>
<a href="{{ site.repository | prepend: 'https://github.com/' }}">GitHub</a>
</nav>
</div>
</header>
<main class="page-content">
<div class="wrapper">
{{ content }}
</div>
</main>
<footer class="site-footer">
<div class="wrapper">
<p>&copy; {{ 'now' | date: '%Y' }} {{ site.title }}. Built with Jekyll and GitHub Pages.</p>
</div>
</footer>
</body>
</html>

View File

@@ -1,70 +0,0 @@
---
layout: default
---
{% assign formula = site.data.formulae.formulae | where: "name", page.formula | first %}
<article class="formula-page">
<header class="formula-header">
<h1>{{ formula.name }}</h1>
<div class="formula-meta">
{% if formula.version %}<span class="version">v{{ formula.version }}</span>{% endif %}
{% if formula.license %}<span class="license">{{ formula.license }}</span>{% endif %}
{% if formula.homepage %}<a href="{{ formula.homepage }}" class="homepage">Homepage</a>{% endif %}
</div>
</header>
{% if formula.description %}
<section class="description">
<p>{{ formula.description }}</p>
</section>
{% endif %}
<section class="installation">
<h2>Installation</h2>
<div class="code-block">
<pre><code>brew tap {{ site.repository }}
brew install {{ formula.name }}</code></pre>
</div>
</section>
{% if formula.dependencies.size > 0 %}
<section class="dependencies">
<h2>Dependencies</h2>
<ul class="dep-list">
{% for dep in formula.dependencies %}
<li>{{ dep }}</li>
{% endfor %}
</ul>
</section>
{% endif %}
<section class="details">
<h2>Formula Details</h2>
<table class="formula-details">
{% if formula.url %}
<tr>
<th>Source URL</th>
<td><a href="{{ formula.url }}">{{ formula.url | truncate: 60 }}</a></td>
</tr>
{% endif %}
{% if formula.sha256 %}
<tr>
<th>SHA256</th>
<td><code>{{ formula.sha256 | truncate: 20 }}...</code></td>
</tr>
{% endif %}
<tr>
<th>Last Updated</th>
<td>{{ formula.last_modified | date: "%B %d, %Y" }}</td>
</tr>
</table>
</section>
<section class="source">
<h2>Formula Source</h2>
<p><a href="{{ site.repository | prepend: 'https://github.com/' }}/blob/main/Formula/{{ formula.file_path }}">
View {{ formula.name }}.rb on GitHub
</a></p>
</section>
</article>

0
docs/assets/.gitkeep Normal file
View File

View File

@@ -1,162 +0,0 @@
:root {
--primary-color: #0366d6;
--text-color: #24292e;
--bg-color: #ffffff;
--code-bg: #f6f8fa;
--border-color: #e1e4e8;
--success-color: #28a745;
--warning-color: #ffc107;
}
* {
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
line-height: 1.6;
color: var(--text-color);
background: var(--bg-color);
margin: 0;
padding: 0;
}
.wrapper {
max-width: 980px;
margin: 0 auto;
padding: 0 2rem;
}
.site-header {
border-bottom: 1px solid var(--border-color);
padding: 1rem 0;
}
.site-header h1 {
margin: 0;
display: inline-block;
}
.site-header a {
text-decoration: none;
color: var(--text-color);
}
.site-header nav {
float: right;
margin-top: 0.5rem;
}
.site-header nav a {
margin-left: 1rem;
color: var(--primary-color);
}
.page-content {
min-height: 70vh;
padding: 2rem 0;
}
.formula-page {
max-width: 100%;
}
.formula-header {
border-bottom: 1px solid var(--border-color);
padding-bottom: 1rem;
margin-bottom: 2rem;
}
.formula-meta {
display: flex;
gap: 1rem;
margin-top: 0.5rem;
font-size: 0.9rem;
flex-wrap: wrap;
}
.version {
background: var(--success-color);
color: white;
padding: 0.2rem 0.5rem;
border-radius: 3px;
}
.license {
background: var(--code-bg);
border: 1px solid var(--border-color);
padding: 0.2rem 0.5rem;
border-radius: 3px;
}
.code-block {
background: var(--code-bg);
border: 1px solid var(--border-color);
border-radius: 6px;
padding: 1rem;
margin: 1rem 0;
overflow-x: auto;
}
.code-block pre {
margin: 0;
}
.dep-list {
list-style: none;
padding: 0;
}
.dep-list li {
padding: 0.5rem;
border-left: 3px solid var(--primary-color);
margin: 0.5rem 0;
background: var(--code-bg);
}
.formula-details {
width: 100%;
border-collapse: collapse;
margin: 1rem 0;
}
.formula-details th,
.formula-details td {
padding: 0.75rem;
text-align: left;
border-bottom: 1px solid var(--border-color);
}
.formula-details th {
background: var(--code-bg);
font-weight: 600;
width: 25%;
}
.site-footer {
border-top: 1px solid var(--border-color);
padding: 2rem 0;
text-align: center;
color: #586069;
font-size: 0.875rem;
}
@media (max-width: 768px) {
.wrapper {
padding: 0 1rem;
}
.site-header nav {
float: none;
margin-top: 1rem;
}
.formula-meta {
flex-direction: column;
gap: 0.5rem;
}
.formula-details th {
width: 35%;
}
}

0
docs/formula/.gitkeep Normal file
View File

View File

@@ -1,27 +0,0 @@
---
layout: default
title: All Formulae
---
# All Formulae
{% if site.data.formulae.formulae.size > 0 %}
{% for formula in site.data.formulae.formulae %}
## [{{ formula.name }}]({{ '/formula/' | append: formula.name | relative_url }})
{% if formula.description %}{{ formula.description }}{% endif %}
**Installation:**
```bash
brew install {{ formula.name }}
```
{% if formula.dependencies.size > 0 %}
**Dependencies:** {{ formula.dependencies | join: ', ' }}
{% endif %}
---
{% endfor %}
{% else %}
No formulae available yet. Add some formulae to the `Formula/` directory to get started.
{% endif %}

View File

@@ -1,42 +0,0 @@
---
layout: default
title: Home
---
# ivuorinen/homebrew-tap
Welcome to the documentation for ivuorinen's Homebrew tap. This tap contains custom formulae for various tools and utilities.
## Quick Start
```bash
brew tap ivuorinen/homebrew-tap
brew install <formula-name>
```
## Available Formulae
{% if site.data.formulae.formulae.size > 0 %}
<div class="formulae-grid">
{% for formula in site.data.formulae.formulae %}
<div class="formula-card">
<h3><a href="{{ '/formula/' | append: formula.name | relative_url }}">{{ formula.name }}</a></h3>
{% if formula.description %}<p>{{ formula.description }}</p>{% endif %}
<div class="formula-meta">
{% if formula.version %}<span class="version">v{{ formula.version }}</span>{% endif %}
{% if formula.license %}<span class="license">{{ formula.license }}</span>{% endif %}
</div>
</div>
{% endfor %}
</div>
{% else %}
<p>No formulae available yet. Add some formulae to the <code>Formula/</code> directory to get started.</p>
{% endif %}
## Repository
View the source code and contribute on [GitHub](https://github.com/{{ site.repository }}).
---
*Documentation automatically generated from formula files.*