Feat/homepage redesign#196
Merged
Merged
Conversation
Complete visual overhaul of the GitHub Pages homepage: - Switch color scheme from warm sepia to dark professional (Indigo accent) - Replace serif fonts with Inter/system-ui stack (no external deps) - Add sticky navbar with brand logo, anchor links, GitHub star button - Rebuild hero with gradient headline, stronger copy, and stats bar - Add Before/After problem framing section - Add architecture flow diagram (Agent → Runtime → Ledger → Tools) - Upgrade guarantee cards with icons, code snippets, and hover effects - Add quickstart with 3 tabs (Embedded/HTTP/Python) and copy buttons - Add integrations badge grid (Go, Python, Node.js, PostgreSQL, OTel, MCP) - Add CTA banner and improved footer - Preserve live runtime detection for self-hosted deployments Zero external dependencies — single self-contained HTML file. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ioutil.ReadFile → os.ReadFile ioutil.ReadAll → io.ReadAll Fixes golangci-lint govet inline warnings on Go 1.26. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR modernizes Aetheris’s embedded homepage to a new, more marketing/quickstart-oriented layout and updates Go ingestion code to avoid deprecated ioutil helpers.
Changes:
- Replaced deprecated
ioutil.ReadFile/ReadAllusage in the document loader withos.ReadFileandio.ReadAll. - Redesigns the static homepage HTML/CSS into a multi-section landing page (hero, guarantees, quickstart tabs, integrations, resources).
- Adds client-side tab switching, copy-to-clipboard helpers, and live runtime detection to show operational shortcuts.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
| internal/pipeline/ingest/loader.go | Migrates file reading off deprecated ioutil APIs. |
| internal/api/http/static/homepage/index.html | Full homepage redesign with new quickstart/integration content and small JS helpers. |
Comments suppressed due to low confidence (1)
internal/pipeline/ingest/loader.go:185
- Same mixed-language error message ("读取文件failed") is used here as well. Standardizing these messages (and optionally including filename/upload metadata) will make pipeline failures easier to debug and more consistent for users.
content, err := io.ReadAll(file)
if err != nil {
return nil, common.NewPipelineError(l.name, "读取文件failed", err)
}
Comment on lines
+138
to
141
| content, err := os.ReadFile(cleanPath) | ||
| if err != nil { | ||
| return nil, common.NewPipelineError(l.name, "读取文件failed", err) | ||
| } |
| <div class="qs-code-wrap"> | ||
| <pre><code>curl -X POST http://localhost:8080/api/agents/default/message \ | ||
| -H "Content-Type: application/json" \ | ||
| -d '{"content": "Summarize the top 3 HN stories"}'</code></pre> |
Comment on lines
+1176
to
+1179
| - id: my-agent | ||
| type: external_http | ||
| endpoint: http://localhost:9000/run | ||
| timeout: 30s</code></pre> |
Comment on lines
+1221
to
+1239
| <div class="qs-code-wrap"> | ||
| <pre><code>pip install aetheris-sdk</code></pre> | ||
| <button class="copy-btn" onclick="copy(this)">copy</button> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <div class="qs-step-item"> | ||
| <div class="qs-num">2</div> | ||
| <div> | ||
| <div class="qs-step-title">Submit a durable job</div> | ||
| <div class="qs-code-wrap"> | ||
| <pre><code><span class="tok-kw">from</span> aetheris <span class="tok-kw">import</span> Client | ||
|
|
||
| client = Client(<span class="tok-str">"http://localhost:8080"</span>) | ||
| job = client.submit( | ||
| agent=<span class="tok-str">"default"</span>, | ||
| message=<span class="tok-str">"Summarize the report"</span>, | ||
| ) | ||
| <span class="tok-kw">print</span>(job.id, job.status)</code></pre> |
| <div class="arch-node"> | ||
| <div class="arch-box"> | ||
| <div class="arch-box-title">Aetheris API</div> | ||
| <div class="arch-box-sub">POST /agents/:id/message</div> |
| <!-- ═══ Hero ══════════════════════════════════════════════ --> | ||
| <section class="hero"> | ||
| <div class="wrap"> | ||
| <div class="hero-badge">v2.5.3 · Open Source · Go 1.26</div> |
Comment on lines
+1483
to
+1493
| function copy(btn) { | ||
| var pre = btn.parentElement.querySelector('pre'); | ||
| var text = pre ? pre.innerText : ''; | ||
| navigator.clipboard.writeText(text).then(function () { | ||
| btn.textContent = 'copied!'; | ||
| btn.classList.add('copied'); | ||
| setTimeout(function () { | ||
| btn.textContent = 'copy'; | ||
| btn.classList.remove('copied'); | ||
| }, 1800); | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Describe the change and why it is needed.
Changes
Validation
go test ./...go build ./...Compatibility / Risk
Call out breaking changes, migrations, or runtime risks.
Related Issues
Link related issues (e.g.
Closes #123).