Skip to content

Commit e98ebd4

Browse files
committed
Redesign Astro
1 parent b2c202d commit e98ebd4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1792
-371
lines changed

.DS_Store

8 KB
Binary file not shown.
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Generate Missing Images
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
# Run weekly on Sundays at 2 AM UTC
7+
- cron: '0 2 * * 0'
8+
push:
9+
paths:
10+
- 'data.toml'
11+
branches:
12+
- main
13+
14+
jobs:
15+
generate-images:
16+
runs-on: ubuntu-latest
17+
18+
permissions:
19+
contents: write
20+
pull-requests: write
21+
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v4
25+
with:
26+
fetch-depth: 0
27+
28+
- name: Setup Node.js
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: '20'
32+
33+
- name: Install dependencies
34+
run: npm ci
35+
36+
- name: Generate missing images
37+
env:
38+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
39+
run: npm run generate-images
40+
41+
- name: Check for changes
42+
id: check_changes
43+
run: |
44+
if [[ -n $(git status --porcelain) ]]; then
45+
echo "changes=true" >> $GITHUB_OUTPUT
46+
else
47+
echo "changes=false" >> $GITHUB_OUTPUT
48+
fi
49+
50+
- name: Create Pull Request
51+
if: steps.check_changes.outputs.changes == 'true'
52+
uses: peter-evans/create-pull-request@v6
53+
with:
54+
token: ${{ secrets.GITHUB_TOKEN }}
55+
commit-message: 'feat: Add generated poster images for entries'
56+
title: 'Add generated poster images'
57+
body: |
58+
This PR adds AI-generated poster images for entries that were missing them.
59+
60+
The images were generated using OpenAI's gpt-image-1 model with the following prompt template:
61+
- Movie poster artwork style
62+
- Teal/gold color scheme
63+
- 16:9 aspect ratio
64+
- No text overlays
65+
66+
Please review the generated images and the updated `data.toml` file.
67+
branch: generated-images-${{ github.run_number }}
68+
delete-branch: true
69+
labels: |
70+
automated
71+
images
72+
enhancement

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ README.md
33
dist/
44
.astro/
55
.playwright-mcp
6-
.vscode/
6+
.vscode/
7+
.env

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
*Use your AI agent outside the terminal.*
117117

118118
<details>
119-
<summary><strong><a href="https://github.com/baryhuang/claude-code-by-agents">Agentrooms</a> <a href="https://github.com/baryhuang/claude-code-by-agents"><img src="https://raw.githubusercontent.com/no-fluff/awesome-vibe-coding/main/src/images/github.svg" width="16" height="16" alt="GitHub" align="absmiddle" /></a></strong> Multi-agent workspace for collaborative development with Claude CLI.</summary>
119+
<summary><strong><a href="https://claudecode.run/">Agentrooms</a> <a href="https://github.com/baryhuang/claude-code-by-agents"><img src="https://raw.githubusercontent.com/no-fluff/awesome-vibe-coding/main/src/images/github.svg" width="16" height="16" alt="GitHub" align="absmiddle" /></a></strong> Multi-agent workspace for collaborative development with Claude CLI.</summary>
120120

121121
<blockquote>Agentrooms provides desktop and web interfaces for coordinating specialized AI agents in collaborative software development workflows, enabling task routing via @agent-name mentions, automatic decomposition, and management of complex multi-agent projects using Claude CLI as the underlying engine.</blockquote>
122122
</details>

astro.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { defineConfig } from 'astro/config';
22
import readmeIntegration from './src/lib/readme-integration.js';
3+
import imageGenerationIntegration from './src/lib/image-generation-integration.js';
34

45
// https://astro.build/config
56
export default defineConfig({
@@ -9,5 +10,5 @@ export default defineConfig({
910
build: {
1011
format: 'file'
1112
},
12-
integrations: [readmeIntegration()]
13+
integrations: [imageGenerationIntegration(), readmeIntegration()]
1314
});

0 commit comments

Comments
 (0)