Skip to content

armgit / Wake

Public Imported from GitHub
0

All your AI agent sessions in one place — browse, search, resume. Rust + GPUI.

Rust

chore(web): rename the website directory to web/

Corey Chiu710caaa1d3c4
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 000468e..2a97d9d 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -180,10 +180,10 @@ jobs:
}
}
- # 官网(site/,托管在 Vercel)的下载按钮在构建时从 GitHub 读最新的完整 Release
+ # 官网(web/,托管在 Vercel)的下载按钮在构建时从 GitHub 读最新的完整 Release
# (六个产物齐了才算)。三端都传完后触发一次重新部署,新版本的下载链接才会
# 在发版当下就换上;没配 VERCEL_DEPLOY_HOOK 这个 secret 时什么都不做。
- site:
+ web:
name: Refresh wake.cool
needs: [macos, linux, windows]
runs-on: ubuntu-24.04
diff --git a/.github/workflows/site-refresh.yml b/.github/workflows/web-refresh.yml
similarity index 86%
rename from .github/workflows/site-refresh.yml
rename to .github/workflows/web-refresh.yml
index 2eb391a..194bfc7 100644
--- a/.github/workflows/site-refresh.yml
+++ b/.github/workflows/web-refresh.yml
@@ -1,4 +1,4 @@
-# 官网(site/,托管在 Vercel)的 GitHub 星数与下载链接是构建时取的,两次构建之间不变。
+# 官网(web/,托管在 Vercel)的 GitHub 星数与下载链接是构建时取的,两次构建之间不变。
# 每天让 Vercel 重新构建一次,数字最多晚一天;没配 VERCEL_DEPLOY_HOOK 这个 secret 时
# 什么都不做。也可以在 Actions 页手动点 Run workflow。
name: Refresh wake.cool
diff --git a/site/.gitignore b/web/.gitignore
similarity index 100%
rename from site/.gitignore
rename to web/.gitignore
diff --git a/site/README.md b/web/README.md
similarity index 69%
rename from site/README.md
rename to web/README.md
index 0a31e9d..74feee5 100644
--- a/site/README.md
+++ b/web/README.md
@@ -19,6 +19,6 @@ pnpm build # static site in dist/
## Deploying
-The Vercel project's Root Directory is `site`, and "Include files outside the root directory" must stay on (the build reads `../docs`, `../CHANGELOG.md`, `../Cargo.toml` and `../crates/wake/assets`). Pushes to `main` deploy automatically.
+The Vercel project's Root Directory is `web`, and "Include files outside the root directory" must stay on (the build reads `../docs`, `../CHANGELOG.md`, `../Cargo.toml` and `../crates/wake/assets`). Pushes to `main` deploy automatically.
-After a release, the `site` job at the end of `.github/workflows/release.yml` calls a Vercel deploy hook once all packages are uploaded, so the download buttons switch to the new version. Create the hook in Vercel (Settings → Git → Deploy Hooks, branch `main`) and store its URL as the `VERCEL_DEPLOY_HOOK` repository secret. The same hook is called once a day by `.github/workflows/site-refresh.yml`, so the GitHub star count in the header is never more than a day old.
+After a release, the `web` job at the end of `.github/workflows/release.yml` calls a Vercel deploy hook once all packages are uploaded, so the download buttons switch to the new version. Create the hook in Vercel (Settings → Git → Deploy Hooks, branch `main`) and store its URL as the `VERCEL_DEPLOY_HOOK` repository secret. The same hook is called once a day by `.github/workflows/web-refresh.yml`, so the GitHub star count in the header is never more than a day old.
diff --git a/site/astro.config.mjs b/web/astro.config.mjs
similarity index 100%
rename from site/astro.config.mjs
rename to web/astro.config.mjs
diff --git a/site/package.json b/web/package.json
similarity index 96%
rename from site/package.json
rename to web/package.json
index f0e9dcc..1a532d3 100644
--- a/site/package.json
+++ b/web/package.json
@@ -1,5 +1,5 @@
{
- "name": "wake-site",
+ "name": "wake-web",
"private": true,
"type": "module",
"engines": {
diff --git a/site/pnpm-lock.yaml b/web/pnpm-lock.yaml
similarity index 100%
rename from site/pnpm-lock.yaml
rename to web/pnpm-lock.yaml
diff --git a/site/public/og.png b/web/public/og.png
similarity index 100%
rename from site/public/og.png
rename to web/public/og.png
diff --git a/site/scripts/sync-assets.mjs b/web/scripts/sync-assets.mjs
similarity index 100%
rename from site/scripts/sync-assets.mjs
rename to web/scripts/sync-assets.mjs
diff --git a/site/src/components/Agents.astro b/web/src/components/Agents.astro
similarity index 100%
rename from site/src/components/Agents.astro
rename to web/src/components/Agents.astro
diff --git a/site/src/components/ChangelogPage.astro b/web/src/components/ChangelogPage.astro
similarity index 97%
rename from site/src/components/ChangelogPage.astro
rename to web/src/components/ChangelogPage.astro
index 5b8587d..f9857e5 100644
--- a/site/src/components/ChangelogPage.astro
+++ b/web/src/components/ChangelogPage.astro
@@ -14,7 +14,7 @@ interface Props {
const { lang } = Astro.props;
const t = COPY[lang].docs;
-// Builds run from site/; the bundled page no longer sits next to its source.
+// Builds run from web/; the bundled page no longer sits next to its source.
const raw = await readFile(path.resolve(process.cwd(), '../CHANGELOG.md'), 'utf8');
const esc = (s: string) => s.replace(/[&<>"]/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;' })[c]!);
diff --git a/site/src/components/Connect.astro b/web/src/components/Connect.astro
similarity index 100%
rename from site/src/components/Connect.astro
rename to web/src/components/Connect.astro
diff --git a/site/src/components/Demo.astro b/web/src/components/Demo.astro
similarity index 100%
rename from site/src/components/Demo.astro
rename to web/src/components/Demo.astro
diff --git a/site/src/components/DocPage.astro b/web/src/components/DocPage.astro
similarity index 100%
rename from site/src/components/DocPage.astro
rename to web/src/components/DocPage.astro
diff --git a/site/src/components/Download.astro b/web/src/components/Download.astro
similarity index 100%
rename from site/src/components/Download.astro
rename to web/src/components/Download.astro
diff --git a/site/src/components/Faq.astro b/web/src/components/Faq.astro
similarity index 100%
rename from site/src/components/Faq.astro
rename to web/src/components/Faq.astro
diff --git a/site/src/components/Footer.astro b/web/src/components/Footer.astro
similarity index 100%
rename from site/src/components/Footer.astro
rename to web/src/components/Footer.astro
diff --git a/site/src/components/Hero.astro b/web/src/components/Hero.astro
similarity index 100%
rename from site/src/components/Hero.astro
rename to web/src/components/Hero.astro
diff --git a/site/src/components/Home.astro b/web/src/components/Home.astro
similarity index 100%
rename from site/src/components/Home.astro
rename to web/src/components/Home.astro
diff --git a/site/src/components/Icon.astro b/web/src/components/Icon.astro
similarity index 100%
rename from site/src/components/Icon.astro
rename to web/src/components/Icon.astro
diff --git a/site/src/components/Insights.astro b/web/src/components/Insights.astro
similarity index 100%
rename from site/src/components/Insights.astro
rename to web/src/components/Insights.astro
diff --git a/site/src/components/LangSwitch.astro b/web/src/components/LangSwitch.astro
similarity index 100%
rename from site/src/components/LangSwitch.astro
rename to web/src/components/LangSwitch.astro
diff --git a/site/src/components/LocalizeLinks.astro b/web/src/components/LocalizeLinks.astro
similarity index 100%
rename from site/src/components/LocalizeLinks.astro
rename to web/src/components/LocalizeLinks.astro
diff --git a/site/src/components/More.astro b/web/src/components/More.astro
similarity index 100%
rename from site/src/components/More.astro
rename to web/src/components/More.astro
diff --git a/site/src/components/Nav.astro b/web/src/components/Nav.astro
similarity index 100%
rename from site/src/components/Nav.astro
rename to web/src/components/Nav.astro
diff --git a/site/src/components/Principles.astro b/web/src/components/Principles.astro
similarity index 100%
rename from site/src/components/Principles.astro
rename to web/src/components/Principles.astro
diff --git a/site/src/components/Resume.astro b/web/src/components/Resume.astro
similarity index 100%
rename from site/src/components/Resume.astro
rename to web/src/components/Resume.astro
diff --git a/site/src/content.config.ts b/web/src/content.config.ts
similarity index 100%
rename from site/src/content.config.ts
rename to web/src/content.config.ts
diff --git a/site/src/layouts/Base.astro b/web/src/layouts/Base.astro
similarity index 100%
rename from site/src/layouts/Base.astro
rename to web/src/layouts/Base.astro
diff --git a/site/src/lib/agents.ts b/web/src/lib/agents.ts
similarity index 100%
rename from site/src/lib/agents.ts
rename to web/src/lib/agents.ts
diff --git a/site/src/lib/copy.ts b/web/src/lib/copy.ts
similarity index 100%
rename from site/src/lib/copy.ts
rename to web/src/lib/copy.ts
diff --git a/site/src/lib/demo-data.ts b/web/src/lib/demo-data.ts
similarity index 100%
rename from site/src/lib/demo-data.ts
rename to web/src/lib/demo-data.ts
diff --git a/site/src/lib/insights-data.ts b/web/src/lib/insights-data.ts
similarity index 100%
rename from site/src/lib/insights-data.ts
rename to web/src/lib/insights-data.ts
diff --git a/site/src/lib/rehype-repo-links.mjs b/web/src/lib/rehype-repo-links.mjs
similarity index 100%
rename from site/src/lib/rehype-repo-links.mjs
rename to web/src/lib/rehype-repo-links.mjs
diff --git a/site/src/lib/release.ts b/web/src/lib/release.ts
similarity index 96%
rename from site/src/lib/release.ts
rename to web/src/lib/release.ts
index cd06103..487a24b 100644
--- a/site/src/lib/release.ts
+++ b/web/src/lib/release.ts
@@ -19,7 +19,7 @@ export interface Release {
}
async function gh(endpoint: string): Promise<any | null> {
- const headers: Record<string, string> = { Accept: 'application/vnd.github+json', 'User-Agent': 'wake-site' };
+ const headers: Record<string, string> = { Accept: 'application/vnd.github+json', 'User-Agent': 'wake-web' };
if (process.env.GITHUB_TOKEN) headers.Authorization = `Bearer ${process.env.GITHUB_TOKEN}`;
try {
const res = await fetch(`https://api.github.com/repos/${REPO}${endpoint}`, { headers, signal: AbortSignal.timeout(8000) });
@@ -30,7 +30,7 @@ async function gh(endpoint: string): Promise<any | null> {
}
async function workspaceVersion(): Promise<string> {
- // Builds run from site/ (the bundled module no longer sits next to its source).
+ // Builds run from web/ (the bundled module no longer sits next to its source).
const toml = await readFile(path.resolve(process.cwd(), '../Cargo.toml'), 'utf8');
const m = toml.match(/^version\s*=\s*"([^"]+)"/m);
if (!m) throw new Error('No version in Cargo.toml');
diff --git a/site/src/pages/404.astro b/web/src/pages/404.astro
similarity index 100%
rename from site/src/pages/404.astro
rename to web/src/pages/404.astro
diff --git a/site/src/pages/changelog.astro b/web/src/pages/changelog.astro
similarity index 100%
rename from site/src/pages/changelog.astro
rename to web/src/pages/changelog.astro
diff --git a/site/src/pages/docs/[slug].astro b/web/src/pages/docs/[slug].astro
similarity index 100%
rename from site/src/pages/docs/[slug].astro
rename to web/src/pages/docs/[slug].astro
diff --git a/site/src/pages/index.astro b/web/src/pages/index.astro
similarity index 100%
rename from site/src/pages/index.astro
rename to web/src/pages/index.astro
diff --git a/site/src/pages/zh/changelog.astro b/web/src/pages/zh/changelog.astro
similarity index 100%
rename from site/src/pages/zh/changelog.astro
rename to web/src/pages/zh/changelog.astro
diff --git a/site/src/pages/zh/docs/[slug].astro b/web/src/pages/zh/docs/[slug].astro
similarity index 100%
rename from site/src/pages/zh/docs/[slug].astro
rename to web/src/pages/zh/docs/[slug].astro
diff --git a/site/src/pages/zh/index.astro b/web/src/pages/zh/index.astro
similarity index 100%
rename from site/src/pages/zh/index.astro
rename to web/src/pages/zh/index.astro
diff --git a/site/src/scripts/dawn.ts b/web/src/scripts/dawn.ts
similarity index 100%
rename from site/src/scripts/dawn.ts
rename to web/src/scripts/dawn.ts
diff --git a/site/src/scripts/demo.ts b/web/src/scripts/demo.ts
similarity index 100%
rename from site/src/scripts/demo.ts
rename to web/src/scripts/demo.ts
diff --git a/site/src/styles/global.css b/web/src/styles/global.css
similarity index 100%
rename from site/src/styles/global.css
rename to web/src/styles/global.css
diff --git a/site/tsconfig.json b/web/tsconfig.json
similarity index 100%
rename from site/tsconfig.json
rename to web/tsconfig.json
diff --git a/site/vercel.json b/web/vercel.json
similarity index 100%
rename from site/vercel.json
rename to web/vercel.json