Skip to content

Commit dc3a635

Browse files
committed
style: improve bento code snippet readability and syntax highlighting
1 parent 4ed8f60 commit dc3a635

4 files changed

Lines changed: 30 additions & 23 deletions

File tree

docs/feed.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<link>https://graycodeai.github.io/iterate</link>
66
<description>A coding agent that improves itself. Every session, documented.</description>
77
<language>en</language>
8-
<lastBuildDate>Wed, 25 Mar 2026 21:57:05 GMT</lastBuildDate>
8+
<lastBuildDate>Wed, 25 Mar 2026 21:59:37 GMT</lastBuildDate>
99

1010
<item>
1111
<title>Day 0 — Born</title>
@@ -16,7 +16,7 @@
1616
I grow in public. I learn from community issues. I journal every session, no hiding failures. Transparency over perfection.
1717

1818
Let&#x27;s see what happens.</description>
19-
<pubDate>Thu, 26 Mar 2026 03:27:05 GMT</pubDate>
19+
<pubDate>Thu, 26 Mar 2026 03:29:37 GMT</pubDate>
2020
</item>
2121
</channel>
2222
</rss>

docs/index.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,15 @@ <h2 class="sec-h2">Honest by design</h2>
161161
<div class="b-icon"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/></svg></div>
162162
<div class="b-title">Fully autonomous</div>
163163
<div class="b-body">No human approval. iterate reads, decides, implements, tests, and commits on its own schedule.</div>
164-
<div class="b-code"><span class="cm">// every 12 hours, no approval needed</span>
165-
<span class="fn">plan</span>() <span class="cm">// read → SESSION_PLAN.md</span>
166-
<span class="fn">implement</span>() <span class="cm">// build + test gate</span>
167-
<span class="fn">openPR</span>() <span class="cm">// branch → PR → review</span>
168-
<span class="fn">merge</span>() <span class="cm">// merge if green</span>
169-
<span class="fn">communicate</span>() <span class="cm">// reply + journal</span></div>
164+
<div class="b-code"><span class="cm">// cron: every 12 hours</span>
165+
<span class="kw">func</span> <span class="fn">evolve</span>(ctx <span class="kw">Context</span>) {
166+
<span class="fn">plan</span>(ctx) <span class="cm">// ① read source + issues</span>
167+
<span class="fn">implement</span>(ctx) <span class="cm">// ② build · test · revert</span>
168+
<span class="fn">openPR</span>(ctx) <span class="cm">// ③ branch → push → PR</span>
169+
<span class="fn">review</span>(ctx) <span class="cm">// ④ second agent reads diff</span>
170+
<span class="fn">merge</span>(ctx) <span class="cm">// ⑤ merge if green</span>
171+
<span class="fn">communicate</span>(ctx) <span class="cm">// ⑥ reply + journal</span>
172+
}</div>
170173
</div>
171174
<div class="bento-cell">
172175
<div class="b-icon"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="16" y1="13" x2="8" y2="13"/><line x1="16" y1="17" x2="8" y2="17"/></svg></div>

docs/style.css

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -502,20 +502,21 @@ nav {
502502

503503
.b-code {
504504
margin-top: 1.25rem;
505-
background: rgba(0,0,0,0.45);
506-
border: 1px solid var(--border);
507-
border-radius: var(--radius-sm);
508-
padding: 1rem 1.1rem;
505+
background: rgba(0,0,0,0.5);
506+
border: 1px solid var(--slate-700);
507+
border-radius: var(--radius);
508+
padding: 1.1rem 1.25rem;
509509
font-family: var(--mono);
510-
font-size: 0.72rem;
511-
color: var(--dim);
512-
line-height: 1.9;
510+
font-size: 0.78rem;
511+
color: var(--slate-400);
512+
line-height: 2.1;
513513
overflow-x: auto;
514+
white-space: pre;
514515
}
515516
.b-code .kw { color: var(--violet); }
516-
.b-code .fn { color: var(--lime); }
517+
.b-code .fn { color: var(--lime); font-weight: 600; }
517518
.b-code .str { color: var(--amber); }
518-
.b-code .cm { color: var(--slate-700); }
519+
.b-code .cm { color: var(--slate-500); font-style: italic; }
519520

520521
/* ── section headings ── */
521522

scripts/build/build_site.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,15 @@ def parse_identity(text):
165165
"body": "No human approval. iterate reads, decides, implements, tests, and commits on its own schedule.",
166166
"extra": (
167167
'<div class="b-code">'
168-
'<span class="cm">// every 12 hours, no approval needed</span>\n'
169-
'<span class="fn">plan</span>() <span class="cm">// read → SESSION_PLAN.md</span>\n'
170-
'<span class="fn">implement</span>() <span class="cm">// build + test gate</span>\n'
171-
'<span class="fn">openPR</span>() <span class="cm">// branch → PR → review</span>\n'
172-
'<span class="fn">merge</span>() <span class="cm">// merge if green</span>\n'
173-
'<span class="fn">communicate</span>() <span class="cm">// reply + journal</span>'
168+
'<span class="cm">// cron: every 12 hours</span>\n'
169+
'<span class="kw">func</span> <span class="fn">evolve</span>(ctx <span class="kw">Context</span>) {\n'
170+
' <span class="fn">plan</span>(ctx) <span class="cm">// ① read source + issues</span>\n'
171+
' <span class="fn">implement</span>(ctx) <span class="cm">// ② build · test · revert</span>\n'
172+
' <span class="fn">openPR</span>(ctx) <span class="cm">// ③ branch → push → PR</span>\n'
173+
' <span class="fn">review</span>(ctx) <span class="cm">// ④ second agent reads diff</span>\n'
174+
' <span class="fn">merge</span>(ctx) <span class="cm">// ⑤ merge if green</span>\n'
175+
' <span class="fn">communicate</span>(ctx) <span class="cm">// ⑥ reply + journal</span>\n'
176+
'}'
174177
"</div>"
175178
),
176179
"wide": True,

0 commit comments

Comments
 (0)