Skip to content

Feat/homepage redesign#196

Merged
Colin4k1024 merged 2 commits into
mainfrom
feat/homepage-redesign
May 13, 2026
Merged

Feat/homepage redesign#196
Colin4k1024 merged 2 commits into
mainfrom
feat/homepage-redesign

Conversation

@Colin4k1024
Copy link
Copy Markdown
Owner

Summary

Describe the change and why it is needed.

Changes

Validation

  • go test ./...
  • go build ./...
  • docs updated when behavior changed

Compatibility / Risk

Call out breaking changes, migrations, or runtime risks.

Related Issues

Link related issues (e.g. Closes #123).

Colin4k1024 and others added 2 commits May 13, 2026 10:37
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>
Copilot AI review requested due to automatic review settings May 13, 2026 02:45
@Colin4k1024 Colin4k1024 added the ready-to-merge Queued and ready for serial merge label May 13, 2026
@Colin4k1024 Colin4k1024 merged commit dcf7b39 into main May 13, 2026
9 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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/ReadAll usage in the document loader with os.ReadFile and io.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 &nbsp;·&nbsp; Open Source &nbsp;·&nbsp; 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);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge Queued and ready for serial merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants