Repository navigation
产品介绍网站(GitHub Pages,中英双语、深浅色、响应式) - #16
Merged
Merged
Conversation
A bilingual (zh / en), light and dark, responsive single page in website/: static HTML, CSS and JS modules without npm dependencies. website/build.py checks the i18n files, pre-renders the Chinese text and converts docs/screenshots to WebP, so the screenshots stay in one place and follow the page's language and theme. Pages already serves the router plugin feed under /agent/, and every deployment replaces the whole site. pages.yml now deploys both: a website change mirrors the live feed (mirror_feed.py verifies every file against manifest.json and the indexes and fails instead of shipping a partial feed), and openwrt-release.yml hands its new feed to pages.yml instead of deploying the feed alone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The router plugin's LuCI pages have a new look and the screenshots in docs/screenshots/luci are from the old one. The website now draws the page itself (js/luci.js) with demo data: all seven tabs switch, the charts are generated, the overview's WAN chart is live and the period buttons work. It follows the page's language and light / dark theme and holds no real router data. The LuCI screenshots are no longer converted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… old LuCI screenshot Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动
website/:RouteLink 的单页产品网站,上线后地址是https://tsix2019.github.io/RouteLink/。?lang=en指定。prefers-reduced-motion。website/build.py(Python + Pillow)负责:docs/screenshots转成 WebP。截图在仓库里只有原来那一份,网页上会自动按当前语言和深浅色取对应的图。docs/superpowers/specs/2026-10-17-routelink-website-design.md。部署(请重点看)
GitHub Pages 现在已经在放插件软件源(
/agent/),App 的MANIFEST_URL和用户路由器上的 opkg / apk 源都指向它。Actions 方式的 Pages 每次部署都会整站替换,所以:.github/workflows/pages.yml,由它统一部署“网站 + 插件源”。main上网站或截图有改动时:先用website/mirror_feed.py把线上/agent/原样镜像下来,每个文件都按manifest.json和Packages里的 sha256、大小校验。缺任何一个文件就让 workflow 失败,不会部署出“有网站、没插件源”的站点。openwrt-release.yml不再自己部署 Pages:把新插件源作为 artifactagent-pages交给pages.yml一起部署,这样发布插件也不会冲掉网站。验证
python website/build.py:通过;故意删掉一个文案键、清空一个值,构建会报错退出。http.server):中英文、浅色 / 深色、桌面和手机宽度都检查过;控制台无报错,没有坏图,手机宽度下没有横向溢出;Tab、画廊平台切换、安装命令切换都能用。eslint.config.js忽略了website/**,它是浏览器脚本,不是 App 代码。没有跑 App 的 lint / tsc / jest:按要求没有安装 App 依赖,这次也没有改动 App 代码。合并后
main会触发pages.yml首次部署网站。仓库的 Pages 已经设为 “GitHub Actions”,不需要改设置。main上真正运行(github-pages环境的分支限制),所以部署本身合并后才能验证。部署完成后建议确认:https://tsix2019.github.io/RouteLink/agent/manifest.json仍然可以访问;🤖 Generated with Claude Code