Skip to content

Commit d67386f

Browse files
author
linyuan.yang
committed
docs
1 parent 46732ba commit d67386f

23 files changed

Lines changed: 2442 additions & 1 deletion

‎.github/workflows/deploy-docs.yml‎

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Deploy Docs
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- 'docs-site/**'
8+
- 'package.json'
9+
- 'pnpm-lock.yaml'
10+
- '.github/workflows/deploy-docs.yml'
11+
workflow_dispatch:
12+
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
concurrency:
19+
group: pages
20+
cancel-in-progress: false
21+
22+
jobs:
23+
build:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v5
27+
- uses: pnpm/action-setup@v6
28+
with:
29+
version: 10
30+
- uses: actions/setup-node@v5
31+
with:
32+
node-version: 22
33+
cache: pnpm
34+
- run: pnpm install --frozen-lockfile
35+
- run: pnpm run docs:build
36+
- uses: actions/configure-pages@v6
37+
with:
38+
enablement: true
39+
- uses: actions/upload-pages-artifact@v5
40+
with:
41+
path: docs
42+
43+
deploy:
44+
needs: build
45+
runs-on: ubuntu-latest
46+
environment:
47+
name: github-pages
48+
url: ${{ steps.deployment.outputs.page_url }}
49+
steps:
50+
- id: deployment
51+
uses: actions/deploy-pages@v5

‎.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
docs
3+

‎README.md‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
1-
# sterm
1+
# STerm
2+
3+
STerm 是一个跨平台 SSH / SFTP 终端客户端,支持 Windows、macOS、Linux、Android 和 iOS。
4+
5+
- [下载 STerm](https://github.com/while-coder/sterm/releases)
6+
- [使用文档](https://while-coder.github.io/sterm/)
7+
- [版本记录](https://github.com/while-coder/sterm/releases)
8+
9+
## 主要功能
10+
11+
- SSH 多会话终端、分屏、广播输入、跳板机、代理与端口转发
12+
- SFTP 文件浏览、上传、下载、断点续传和代码查看
13+
- AI 终端助手,支持命令执行确认和多种模型接口
14+
- 主密码保护、加密导入导出与多种配置同步方式
15+
- 桌面端应用内检查、下载和安装更新
16+
17+
详细使用方式请查看[完整文档](https://while-coder.github.io/sterm/)。

‎docs-site/.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.vitepress/cache
2+
.vitepress/dist
3+
.vitepress/.temp

‎docs-site/.vitepress/config.ts‎

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
import { defineConfig } from "vitepress";
2+
3+
export default defineConfig({
4+
title: "STerm",
5+
description: "安全、顺手的跨平台 SSH / SFTP 终端",
6+
outDir: "../docs",
7+
base: "/sterm/",
8+
lastUpdated: true,
9+
cleanUrls: true,
10+
head: [["link", { rel: "icon", href: "/sterm/logo.svg" }]],
11+
themeConfig: {
12+
logo: "/logo.svg",
13+
socialLinks: [{ icon: "github", link: "https://github.com/while-coder/sterm" }],
14+
search: {
15+
provider: "local",
16+
options: {
17+
locales: {
18+
zh: {
19+
translations: {
20+
button: { buttonText: "搜索文档", buttonAriaLabel: "搜索文档" },
21+
modal: {
22+
noResultsText: "没有找到相关内容",
23+
resetButtonTitle: "清除搜索",
24+
footer: {
25+
selectText: "选择",
26+
navigateText: "切换",
27+
closeText: "关闭",
28+
},
29+
},
30+
},
31+
},
32+
},
33+
},
34+
},
35+
},
36+
locales: {
37+
root: {
38+
label: "English",
39+
lang: "en-US",
40+
title: "STerm",
41+
description: "A secure, practical SSH and SFTP client",
42+
themeConfig: {
43+
nav: [
44+
{ text: "Guide", link: "/guide/getting-started" },
45+
{ text: "Download", link: "https://github.com/while-coder/sterm/releases" },
46+
{ text: "GitHub", link: "https://github.com/while-coder/sterm" },
47+
],
48+
sidebar: sidebar("en"),
49+
footer: {
50+
message: "Secure connections, files, and troubleshooting in one workspace.",
51+
copyright: "Copyright © STerm contributors",
52+
},
53+
},
54+
},
55+
zh: {
56+
label: "简体中文",
57+
lang: "zh-CN",
58+
title: "STerm",
59+
description: "安全、顺手的跨平台 SSH / SFTP 终端",
60+
themeConfig: {
61+
nav: [
62+
{ text: "指南", link: "/zh/guide/getting-started" },
63+
{ text: "下载", link: "https://github.com/while-coder/sterm/releases" },
64+
{ text: "GitHub", link: "https://github.com/while-coder/sterm" },
65+
],
66+
sidebar: sidebar("zh"),
67+
docFooter: { prev: "上一页", next: "下一页" },
68+
outline: { label: "本页目录" },
69+
lastUpdated: { text: "最后更新于" },
70+
darkModeSwitchLabel: "主题",
71+
lightModeSwitchTitle: "切换到浅色模式",
72+
darkModeSwitchTitle: "切换到深色模式",
73+
sidebarMenuLabel: "菜单",
74+
returnToTopLabel: "回到顶部",
75+
langMenuLabel: "切换语言",
76+
footer: {
77+
message: "把安全连接、文件管理和远程排查放在一个工作区里。",
78+
copyright: "Copyright © STerm contributors",
79+
},
80+
},
81+
},
82+
},
83+
});
84+
85+
function sidebar(locale: "en" | "zh") {
86+
const prefix = locale === "zh" ? "/zh" : "";
87+
const text = locale === "zh"
88+
? {
89+
intro: "开始使用",
90+
start: "快速开始",
91+
features: "功能指南",
92+
ssh: "SSH 与会话",
93+
sftp: "SFTP 文件管理",
94+
ai: "AI 终端助手",
95+
security: "安全与同步",
96+
}
97+
: {
98+
intro: "Introduction",
99+
start: "Getting Started",
100+
features: "Features",
101+
ssh: "SSH and Sessions",
102+
sftp: "SFTP File Management",
103+
ai: "AI Terminal Assistant",
104+
security: "Security and Sync",
105+
};
106+
return [
107+
{
108+
text: text.intro,
109+
items: [{ text: text.start, link: `${prefix}/guide/getting-started` }],
110+
},
111+
{
112+
text: text.features,
113+
items: [
114+
{ text: text.ssh, link: `${prefix}/guide/ssh` },
115+
{ text: text.sftp, link: `${prefix}/guide/sftp` },
116+
{ text: text.ai, link: `${prefix}/guide/ai` },
117+
{ text: text.security, link: `${prefix}/guide/security-sync` },
118+
],
119+
},
120+
];
121+
}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<script setup lang="ts">
2+
import { computed } from "vue";
3+
import { useData, withBase } from "vitepress";
4+
5+
const { lang } = useData();
6+
7+
const messages = {
8+
"en-US": {
9+
eyebrow: "SSH · SFTP · AI",
10+
tagline: "Your remote workspace, without the clutter",
11+
desc: "Connect securely, work across multiple terminals, move files, and troubleshoot with AI from one focused desktop app.",
12+
getStarted: "Get Started",
13+
getStartedLink: "/STerm/guide/getting-started",
14+
download: "Download",
15+
highlights: [
16+
["Secure SSH", "Known Hosts verification, password, key, Agent, and interactive authentication."],
17+
["Serious workflows", "Jump hosts, HTTP/SOCKS5 proxies, port forwarding, split view, and broadcast input."],
18+
["File management", "Browse, edit, upload, download, resume transfers, and change remote permissions with SFTP."],
19+
["Terminal AI", "Attach selected text or recent output, inspect commands, and stay in control of execution."],
20+
],
21+
},
22+
"zh-CN": {
23+
eyebrow: "SSH · SFTP · AI",
24+
tagline: "一个窗口,处理所有远程工作",
25+
desc: "安全连接服务器,同时管理多个终端、传输文件,并让 AI 帮你理解现场和排查问题。",
26+
getStarted: "快速开始",
27+
getStartedLink: "/STerm/zh/guide/getting-started",
28+
download: "下载 STerm",
29+
highlights: [
30+
["安全连接", "主机指纹校验,支持密码、私钥、SSH Agent 和交互式认证。"],
31+
["复杂网络", "跳板机、HTTP/SOCKS5 代理、端口转发、分屏与多会话广播。"],
32+
["文件管理", "浏览、编辑、上传、下载、断点续传,并可直接修改远端权限。"],
33+
["终端 AI", "主动附加选区或最近输出,命令执行前清楚展示并由你确认。"],
34+
],
35+
},
36+
};
37+
38+
const t = computed(() => messages[lang.value as keyof typeof messages] ?? messages["en-US"]);
39+
</script>
40+
41+
<template>
42+
<main class="sterm-home">
43+
<section class="sterm-hero">
44+
<img :src="withBase('/logo.svg')" alt="STerm" class="sterm-logo" />
45+
<p class="sterm-eyebrow">{{ t.eyebrow }}</p>
46+
<h1>STerm</h1>
47+
<h2>{{ t.tagline }}</h2>
48+
<p class="sterm-desc">{{ t.desc }}</p>
49+
<div class="sterm-actions">
50+
<a :href="t.getStartedLink" class="sterm-button primary">{{ t.getStarted }} →</a>
51+
<a href="https://github.com/while-coder/sterm/releases" class="sterm-button secondary">
52+
{{ t.download }}
53+
</a>
54+
</div>
55+
</section>
56+
<section class="sterm-grid">
57+
<article v-for="item in t.highlights" :key="item[0]">
58+
<h3>{{ item[0] }}</h3>
59+
<p>{{ item[1] }}</p>
60+
</article>
61+
</section>
62+
</main>
63+
</template>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import DefaultTheme from "vitepress/theme";
2+
import Home from "./Home.vue";
3+
import "./style.css";
4+
5+
export default {
6+
extends: DefaultTheme,
7+
enhanceApp({ app }) {
8+
app.component("Home", Home);
9+
},
10+
};

0 commit comments

Comments
 (0)