docs(web): document update path

This commit is contained in:
Hunter Bown
2026-05-14 14:44:06 -05:00
parent 4c32a316be
commit ab8d71a378
3 changed files with 49 additions and 20 deletions
+39 -6
View File
@@ -19,6 +19,8 @@ const FIRST_RUN = `deepseek`;
const VERIFY = `deepseek --version
deepseek doctor`;
const UPDATE = `deepseek update`;
const SET_KEY_BASH = `export DEEPSEEK_API_KEY=sk-...`;
const SET_KEY_AUTH = `deepseek auth set --provider deepseek --api-key sk-...`;
@@ -149,11 +151,42 @@ export default async function InstallPage({ params }: { params: Promise<{ locale
</p>
</section>
{/* ③ FIRST RUN */}
{/* ③ UPDATE */}
<section className="mx-auto max-w-[1100px] px-6 py-10 hairline-t">
<div className="flex items-baseline gap-4 mb-5">
<Seal char="新" />
<div className="eyebrow">{isZh ? "03 · 更新" : "03 · Update"}</div>
</div>
<InstallCodeBlock cmd={UPDATE} copyLabel={copyLabel} copiedLabel={copiedLabel} />
<p className="mt-4 text-sm text-ink-soft leading-relaxed max-w-2xl">
{isZh ? (
<>
GitHub Releases
Homebrew npm 使
<code className="inline">brew upgrade deepseek-tui</code> {" "}
<code className="inline">npm update -g deepseek-tui</code>
Cargo {" "}
<code className="inline">cargo install deepseek-tui-cli --locked --force</code>
</>
) : (
<>
Checks GitHub Releases for a newer version and replaces the binary in place. If you
installed via Homebrew or npm, prefer the package manager instead:{" "}
<code className="inline">brew upgrade deepseek-tui</code> or{" "}
<code className="inline">npm update -g deepseek-tui</code>. Cargo users can re-run{" "}
<code className="inline">cargo install deepseek-tui-cli --locked --force</code>.
</>
)}
</p>
</section>
{/* ④ FIRST RUN */}
<section className="mx-auto max-w-[1100px] px-6 py-10 hairline-t">
<div className="flex items-baseline gap-4 mb-5">
<Seal char="始" />
<div className="eyebrow">{isZh ? "03 · 首次运行" : "03 · First run"}</div>
<div className="eyebrow">{isZh ? "04 · 首次运行" : "04 · First run"}</div>
</div>
<ol className="space-y-6 max-w-2xl">
@@ -220,12 +253,12 @@ export default async function InstallPage({ params }: { params: Promise<{ locale
</ol>
</section>
{/* OTHER WAYS TO INSTALL */}
{/* OTHER WAYS TO INSTALL */}
<section id="other-ways" className="bg-paper-deep hairline-t hairline-b">
<div className="mx-auto max-w-[1100px] px-6 py-12">
<div className="flex items-baseline gap-4 mb-5">
<Seal char="备" />
<div className="eyebrow">{isZh ? "04 · 其他安装方式" : "04 · Other ways to install"}</div>
<div className="eyebrow">{isZh ? "05 · 其他安装方式" : "05 · Other ways to install"}</div>
</div>
<h2 className="font-display text-3xl mb-2">
{isZh ? "其他安装方式" : "Other ways to install"}
@@ -360,12 +393,12 @@ export default async function InstallPage({ params }: { params: Promise<{ locale
</div>
</section>
{/* WHERE CONFIG LIVES */}
{/* WHERE CONFIG LIVES */}
<section className="mx-auto max-w-[1100px] px-6 py-12">
<div className="flex items-baseline gap-4 mb-5">
<Seal char="件" />
<div className="eyebrow">
{isZh ? "05 · 配置文件位置" : "05 · Where config lives"}
{isZh ? "06 · 配置文件位置" : "06 · Where config lives"}
</div>
</div>
<h2 className="font-display text-3xl mb-6">
+9 -13
View File
@@ -148,35 +148,31 @@ export default async function HomePage({ params }: { params: Promise<{ locale: s
<pre className="code-block mt-2">
{isZh ? (
<>
<span className="comment"># macOS / Linux Cargo</span>{"\n"}
<span className="comment"># </span>{"\n"}
<span className="prompt">$</span> cargo install deepseek-tui-cli --locked{"\n"}
<span className="prompt">$</span> deepseek{"\n"}
<br />
<span className="comment"># npm </span>{"\n"}
<span className="prompt">$</span> npm i -g deepseek-tui{"\n"}
<span className="comment"># </span>{"\n"}
<span className="prompt">$</span> deepseek update{"\n"}
<br />
<span className="comment"># <span className="key">~/.deepseek/</span></span>{"\n"}
<br />
<span className="comment"># </span>{"\n"}
<span className="prompt">$</span> npm config set registry https://registry.npmmirror.com{"\n"}
<span className="prompt">$</span> npm i -g deepseek-tui
<span className="comment"># <span className="key">~/.deepseek/</span></span>
</>
) : (
<>
<span className="comment"># macOS / Linux Cargo</span>{"\n"}
<span className="comment"># install</span>{"\n"}
<span className="prompt">$</span> cargo install deepseek-tui-cli --locked{"\n"}
<span className="prompt">$</span> deepseek{"\n"}
<br />
<span className="comment"># or via npm wrapper</span>{"\n"}
<span className="prompt">$</span> npm i -g deepseek-tui{"\n"}
<span className="comment"># already installed? pull the latest</span>{"\n"}
<span className="prompt">$</span> deepseek update{"\n"}
<br />
<span className="comment"># first run sets up <span className="key">~/.deepseek/</span></span>
</>
)}
</pre>
<div className="mt-3 flex items-center justify-between text-[0.7rem] font-mono text-ink-mute">
<span>{isZh ? `需要 Rust 1.88+ 或 Node ${facts.nodeEngines ?? ">=18"}` : `requires Rust 1.88+ or Node ${facts.nodeEngines ?? ">=18"}`}</span>
<Link href={isZh ? "/zh/install" : "/install"} className="text-indigo hover:underline">{isZh ? "其他系统 →" : "other OSes →"}</Link>
<span>{isZh ? "需要 Rust 1.88+ · 没有 Rust? 见其他方式" : "requires Rust 1.88+ · no Rust? see other ways"}</span>
<Link href={isZh ? "/zh/install" : "/install"} className="text-indigo hover:underline">{isZh ? "其他方式 →" : "other ways →"}</Link>
</div>
</div>
</div>
+1 -1
View File
@@ -18,7 +18,7 @@ export interface RepoFacts {
}
export const FACTS: RepoFacts = {
"generatedAt": "2026-05-14T19:34:46.542Z",
"generatedAt": "2026-05-14T19:43:39.727Z",
"version": "0.8.37",
"crates": [
"agent",