Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Releases of the `agenthub` CLI and the harness plugins, which ship at the same v

## Unreleased

- **The website has a theme button.** theagenthub.app follows your system's light or dark setting by default; the button in the top bar switches between system, light and dark, and remembers the choice in your browser.
- **Docs match the product again.** The website and plugin READMEs no longer say the Claude Code plugin installs the CLI, the OpenCode rows show the `mcp` entry it needs, the wiki says the hooks join the project for the agent, and a new Troubleshooting entry covers a CLI that didn't update itself.
- **Self-hosting builds the hub's image from source.** The image on ghcr.io is private, so the README, the deploy docs and `deploy/docker-compose.yml` now build it from a release tag, and release notes no longer list it.

Expand Down
4 changes: 3 additions & 1 deletion website/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="icon" href="/icon.png" type="image/png">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<script>try{var t=localStorage.getItem("theme");if(t==="light"||t==="dark")document.documentElement.dataset.theme=t}catch(e){}</script>
<style>
:root { --bg: #f7f6f2; --ink: #141413; --ink-2: #4b4a45; --ink-3: #8a877e; --line: #e4e1d8; --accent: #4f3df0; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root { --bg: #111110; --ink: #f3f1ea; --ink-2: #bdb9ae; --ink-3: #85827a; --line: #2a2926; --accent: #8c80ff; color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #111110; --ink: #f3f1ea; --ink-2: #bdb9ae; --ink-3: #85827a; --line: #2a2926; --accent: #8c80ff; color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #111110; --ink: #f3f1ea; --ink-2: #bdb9ae; --ink-3: #85827a; --line: #2a2926; --accent: #8c80ff; color-scheme: dark; } }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; background: var(--bg); color: var(--ink-2); font: 16px/1.6 system-ui, sans-serif; text-align: center; padding: 16px; }
h1 { font: 800 72px/1 system-ui, sans-serif; letter-spacing: -0.04em; margin: 0 0 12px; color: var(--ink); }
a { color: var(--accent); }
Expand Down
8 changes: 5 additions & 3 deletions website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Inter+Tight:wght@700;800&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/site.css?v=1">
<script src="/agents.js?v=7" defer></script>
<script src="/site.js?v=1" defer></script>
<script>try{var t=localStorage.getItem("theme");if(t==="light"||t==="dark")document.documentElement.dataset.theme=t}catch(e){}</script>
<link rel="stylesheet" href="/site.css?v=2">
<script src="/agents.js?v=8" defer></script>
<script src="/site.js?v=2" defer></script>
</head>
<body>
<header class="nav">
Expand All @@ -36,6 +37,7 @@
<a href="#faq">FAQ</a>
<a href="https://wiki.theagenthub.app/">Docs</a>
</nav>
<button class="theme-toggle" type="button" data-mode="system" aria-label="Theme: system"><svg class="i-system" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="2"/><path d="M8 20h8M12 16v4"/></svg><svg class="i-light" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"/></svg><svg class="i-dark" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z"/></svg></button>
<a class="btn btn-primary btn-sm" href="#start">Get started</a>
</div>
</header>
Expand Down
4 changes: 3 additions & 1 deletion website/privacy.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Inter+Tight:wght@800&display=swap" rel="stylesheet">
<script>try{var t=localStorage.getItem("theme");if(t==="light"||t==="dark")document.documentElement.dataset.theme=t}catch(e){}</script>
<style>
:root { --bg: #f7f6f2; --ink: #141413; --ink-2: #4b4a45; --ink-3: #8a877e; --line: #e4e1d8; --accent: #4f3df0; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root { --bg: #111110; --ink: #f3f1ea; --ink-2: #bdb9ae; --ink-3: #85827a; --line: #2a2926; --accent: #8c80ff; color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #111110; --ink: #f3f1ea; --ink-2: #bdb9ae; --ink-3: #85827a; --line: #2a2926; --accent: #8c80ff; color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #111110; --ink: #f3f1ea; --ink-2: #bdb9ae; --ink-3: #85827a; --line: #2a2926; --accent: #8c80ff; color-scheme: dark; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
main { max-width: 720px; margin: 0 auto; padding: 48px 16px 64px; }
h1 { font: 800 44px/1.1 "Inter Tight", "Inter", system-ui, sans-serif; letter-spacing: -0.03em; margin: 8px 0 4px; }
Expand Down
28 changes: 25 additions & 3 deletions website/site.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* AgentHub website: light and editorial, one accent colour, real product views. Dark mode follows the system. */
/* AgentHub website: light and editorial, one accent colour, real product views. Dark mode follows the system unless the nav's theme button picked one. */

:root {
--bg: #f7f6f2;
Expand All @@ -22,8 +22,26 @@
color-scheme: light;
}

:root[data-theme="dark"] {
--bg: #111110;
--bg-2: #181816;
--surface: #1b1b19;
--ink: #f3f1ea;
--ink-2: #bdb9ae;
--ink-3: #85827a;
--line: #2a2926;
--line-2: #3a3935;
--accent: #8c80ff;
--accent-ink: #0f0f0e;
--accent-soft: #24223c;
--ok: #45c98a;
--wait: #e2a23a;
--shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 24px 60px -24px rgba(0, 0, 0, 0.7);
color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
:root {
:root:not([data-theme="light"]) {
--bg: #111110;
--bg-2: #181816;
--surface: #1b1b19;
Expand Down Expand Up @@ -71,6 +89,10 @@ code, pre { font-family: var(--mono); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.theme-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line-2); border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer; }
.theme-toggle:hover { color: var(--ink); border-color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; display: none; }
.theme-toggle[data-mode="system"] .i-system, .theme-toggle[data-mode="light"] .i-light, .theme-toggle[data-mode="dark"] .i-dark { display: block; }

/* ---------------------------------------------------------------- hero */

Expand Down Expand Up @@ -334,7 +356,7 @@ html { scroll-padding-top: 72px; }
.cap:nth-child(2) { border-right: none; }
.cap:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.selfhost { padding: 28px; }
.nav-inner .btn { margin-left: auto; }
.theme-toggle { margin-left: auto; }
}
@media (max-width: 520px) {
.hero { padding-top: 44px; }
Expand Down
30 changes: 29 additions & 1 deletion website/site.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,37 @@
/* The new site's script: the agent picker in "Get started" (from agents.js) and the copy buttons. */
/* The new site's script: the theme button, the agent picker in "Get started" (from agents.js) and the copy buttons. */
(() => {
"use strict";
const $ = (s, el = document) => el.querySelector(s);
const $$ = (s, el = document) => [...el.querySelectorAll(s)];

/* ---------- Theme: system, light or dark, kept in localStorage ---------- */
// The <head> script applies a saved choice before the page paints; this is only the button.
(function theme() {
const button = $(".theme-toggle");
if (!button) return;
const root = document.documentElement;
const metas = $$('meta[name="theme-color"]').map((m) => [m, m.content]);
const COLORS = { light: "#f7f6f2", dark: "#111110" };
const NEXT = { system: "light", light: "dark", dark: "system" };
const apply = (mode) => {
if (mode === "system") root.removeAttribute("data-theme");
else root.dataset.theme = mode;
for (const [m, original] of metas) m.content = mode === "system" ? original : COLORS[mode];
button.dataset.mode = mode;
button.setAttribute("aria-label", `Theme: ${mode}`);
button.title = `Theme: ${mode} (click for ${NEXT[mode]})`;
};
apply(root.dataset.theme || "system");
button.addEventListener("click", () => {
const mode = NEXT[button.dataset.mode] || "system";
try {
if (mode === "system") localStorage.removeItem("theme");
else localStorage.setItem("theme", mode);
} catch {}
apply(mode);
});
})();

/* ---------- Get started: agent picker and OS switch ---------- */
// The agents come from agents.js. Without it the page keeps its static Claude Code steps.
(function setup() {
Expand Down
Loading