refactor: 项目更名 WeKnora → Academy
Build & Publish (dsh-academy) / End-to-end inside dsh (latest, advisory) (push) Skipped
CLI / test (macos-latest / go 1.26) (push) Canceled after 0s
CLI / test (ubuntu-latest / go 1.26) (push) Canceled after 0s
CLI / test (windows-latest / go 1.26) (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
Frontend / Test, type-check, and build (push) Canceled after 0s
Frontend / Docker multi-stage image (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.10) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.11) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.12) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.13) (push) Canceled after 0s
Build & Publish (mcp-server) / Build sdist + wheel (push) Canceled after 0s
Build & Publish (mcp-server) / Publish to PyPI (push) Canceled after 0s
Anydoc / anydoc parser engine (push) Canceled after 0s
App / Format, vet, test, and build (push) Canceled after 0s
DocReader / Python tests and Go client tests (push) Canceled after 0s
Build & Publish (dsh-academy) / Typecheck, test, pack (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (pinned) (push) Canceled after 0s
Build & Publish (dsh-academy) / Publish to npm (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Helm / chart (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (latest, advisory) (push) Skipped
CLI / test (macos-latest / go 1.26) (push) Canceled after 0s
CLI / test (ubuntu-latest / go 1.26) (push) Canceled after 0s
CLI / test (windows-latest / go 1.26) (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
Frontend / Test, type-check, and build (push) Canceled after 0s
Frontend / Docker multi-stage image (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.10) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.11) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.12) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.13) (push) Canceled after 0s
Build & Publish (mcp-server) / Build sdist + wheel (push) Canceled after 0s
Build & Publish (mcp-server) / Publish to PyPI (push) Canceled after 0s
Anydoc / anydoc parser engine (push) Canceled after 0s
App / Format, vet, test, and build (push) Canceled after 0s
DocReader / Python tests and Go client tests (push) Canceled after 0s
Build & Publish (dsh-academy) / Typecheck, test, pack (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (pinned) (push) Canceled after 0s
Build & Publish (dsh-academy) / Publish to npm (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Helm / chart (push) Canceled after 0s
- 全量替换代码/配置/文档中的项目名(保留上游 GitHub 链接、weixin 文档域名、Docker Hub 镜像名) - 重命名 32 个含项目名的文件/目录;Go module 路径改为 academy(含 client/cli 子模块) - docreader proto 描述符采用等长替换,保持序列化字节布局有效 - Dockerfile.app 构建网络修复: browserskill 离线产物通道、PyPI/apt 国内镜像 - 运行验证: go build ✓ docker compose up ✓ 健康检查 ✓
This commit is contained in:
1 parent
9097ee699d
commit
9058149576
3136 files changed
+18018
-18004
No files matched your search
@@ -4,14 +4,14 @@ Logos identify supported integrations; their names and marks belong to their res
|
||||
|
||||
Paths below written as `public/brand/…`, `public/brands/…` and `public/product/…` live under `public/docs/_home/`, so the site serves them from `/docs/_home/` next to the rest of the documentation.
|
||||
|
||||
- WeKnora logo: `docs/images/logo.png` from the WeKnora repository (the README logo), copied unchanged to `public/brand/weknora-original.png`. The site preserves all lettering, graphics and proportions. CSS hides only the empty outer canvas and blends the white background into the page; dark mode uses an inverted presentation with hue rotation. The source image remains unchanged.
|
||||
- WeKnora browser icon: copied unchanged from the existing product's `frontend/public/favicon.ico` into the documentation (`/docs/favicon.ico`), which the homepage also uses. The replacement square sail SVG is no longer shipped.
|
||||
- Feishu, GitLab, Tencent IMA, Notion, Yuque, RSS, WeCom, Slack, Telegram: copied unchanged from the WeKnora frontend asset library.
|
||||
- Academy logo: `docs/images/logo.png` from the Academy repository (the README logo), copied unchanged to `public/brand/academy-original.png`. The site preserves all lettering, graphics and proportions. CSS hides only the empty outer canvas and blends the white background into the page; dark mode uses an inverted presentation with hue rotation. The source image remains unchanged.
|
||||
- Academy browser icon: copied unchanged from the existing product's `frontend/public/favicon.ico` into the documentation (`/docs/favicon.ico`), which the homepage also uses. The replacement square sail SVG is no longer shipped.
|
||||
- Feishu, GitLab, Tencent IMA, Notion, Yuque, RSS, WeCom, Slack, Telegram: copied unchanged from the Academy frontend asset library.
|
||||
- Seafile: copied unchanged from `frontend/src/assets/img/datasource-seafile.png` to `public/brands/seafile.png`.
|
||||
- OpenAI, DeepSeek, Qwen, Hunyuan, Gemini, Ollama, MCP: static SVGs from [Lobe Icons](https://github.com/lobehub/lobe-icons), `@lobehub/icons-static-svg@1.95.0`. Upstream MIT license included with assets.
|
||||
- Confluence, DingTalk: copied unchanged from the WeKnora frontend asset library (`frontend/src/assets/img/datasource-confluence.svg`, `frontend/src/assets/img/im/dingtalk.svg`).
|
||||
- Confluence, DingTalk: copied unchanged from the Academy frontend asset library (`frontend/src/assets/img/datasource-confluence.svg`, `frontend/src/assets/img/im/dingtalk.svg`).
|
||||
- Claude (Anthropic), Zhipu, Kimi (Moonshot), Volcengine, MiniMax: copied unchanged from `internal/models/providers/assets/`, which carries the same Lobe Icons static SVGs; covered by the included Lobe Icons MIT license.
|
||||
- BrowserSkill: `frontend/src/assets/browserskill/logo.png` from the WeKnora frontend (the extension's own icon, [Tencent/BrowserSkill](https://github.com/Tencent/BrowserSkill)), copied unchanged to `public/brands/browserskill.png` with its MIT license as `public/brands/BROWSERSKILL-LICENSE`.
|
||||
- BrowserSkill: `frontend/src/assets/browserskill/logo.png` from the Academy frontend (the extension's own icon, [Tencent/BrowserSkill](https://github.com/Tencent/BrowserSkill)), copied unchanged to `public/brands/browserskill.png` with its MIT license as `public/brands/BROWSERSKILL-LICENSE`.
|
||||
- Chrome: [official Chrome website asset](https://www.google.com/chrome/static/images/chrome-logo-m100.svg).
|
||||
- File formats, REST API, CLI: generic interface icons, not brand logos.
|
||||
- LiteLLM: [official documentation favicon](https://docs.litellm.ai/img/favicon.ico).
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# WeKnora homepage source
|
||||
# Academy homepage source
|
||||
|
||||
The Next.js homepage is one part of the unified site. Run `npm run setup`, `npm run build`, and `npm run preview` from the parent directory to include both the homepage and the complete `/docs/` site. Deployment instructions are in the parent README.
|
||||
|
||||
|
||||
@@ -3,5 +3,5 @@ import { homeAssets } from "../../shared/header";
|
||||
|
||||
/** Show the complete original artwork; the viewport only trims blank canvas. */
|
||||
export function BrandLogo({ priority = false }: { priority?: boolean }) {
|
||||
return <span className="wk-logo"><Image src={`${homeAssets}/brand/weknora-original.png`} alt="WeKnora" width={945} height={650} priority={priority} /></span>;
|
||||
return <span className="wk-logo"><Image src={`${homeAssets}/brand/academy-original.png`} alt="Academy" width={945} height={650} priority={priority} /></span>;
|
||||
}
|
||||
@@ -2,7 +2,7 @@ import type { Metadata } from "next";
|
||||
import { ModelLeaderboard } from "../../model-leaderboard";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "WeKnora 模型评测 · Chat / Embed / Rerank",
|
||||
title: "Academy 模型评测 · Chat / Embed / Rerank",
|
||||
description: "在相同数据以及配置参数下,横向对比 Chat、Embed 与 Rerank 的模型表现,并提供模型效果排行榜。",
|
||||
};
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ export function Header() {
|
||||
const menu = useRef<HTMLButtonElement>(null);
|
||||
return <header className="wk-header" onKeyDown={event => { if (event.key === "Escape" && open) { setOpen(false); menu.current?.focus(); } }}>
|
||||
<div className="wk-header-inner">
|
||||
<a className="wk-brand" href="/" target="_self" aria-label="WeKnora 首页"><BrandLogo priority /></a>
|
||||
<a className="wk-brand" href="/" target="_self" aria-label="Academy 首页"><BrandLogo priority /></a>
|
||||
<nav id="main-navigation" className={`wk-navigation ${open ? "is-open" : ""}`} aria-label="主导航" onClick={() => setOpen(false)}>
|
||||
{siteNavigation.map(item => {
|
||||
if (item.children?.length) {
|
||||
@@ -60,8 +60,8 @@ export function ProductVideo() {
|
||||
return <figure id="demo" className={s.videoFigure}>
|
||||
<div className={s.videoTop}><span>产品演示 <span className={s.videoDot}>/</span> PRODUCT FILM</span><span>02:25 <span className={s.videoDot}>/</span> 1080P</span></div>
|
||||
<div className={s.videoStage}>
|
||||
<video ref={player} controls={started} playsInline preload="none" poster={`${homeAssets}/product/agent-chat.png`} aria-label="WeKnora 产品介绍,英文旁白,中英字幕" aria-describedby="video-caption" tabIndex={started ? 0 : -1} onError={() => setFailed(true)} />
|
||||
{!started && <button className={s.videoCover} onClick={play} aria-label="播放 WeKnora 产品介绍视频,2 分 25 秒"><span className={s.playCircle}><Icon name="play" /></span><span className={s.videoCoverTitle}>WeKnora 产品演示</span><span className={s.videoCoverHint}>播放产品介绍 · 2 分 25 秒</span></button>}
|
||||
<video ref={player} controls={started} playsInline preload="none" poster={`${homeAssets}/product/agent-chat.png`} aria-label="Academy 产品介绍,英文旁白,中英字幕" aria-describedby="video-caption" tabIndex={started ? 0 : -1} onError={() => setFailed(true)} />
|
||||
{!started && <button className={s.videoCover} onClick={play} aria-label="播放 Academy 产品介绍视频,2 分 25 秒"><span className={s.playCircle}><Icon name="play" /></span><span className={s.videoCoverTitle}>Academy 产品演示</span><span className={s.videoCoverHint}>播放产品介绍 · 2 分 25 秒</span></button>}
|
||||
{failed && <div className={s.videoError} role="status"><p>视频暂时无法加载</p><a href={videoUrl} target="_blank" rel="noreferrer">在 GitHub 打开原视频 <Icon name="external" /></a></div>}
|
||||
</div>
|
||||
<figcaption id="video-caption" className={s.videoCaption}><span>知识问答、Agent 推理与 Wiki 整理</span><a href={videoUrl} target="_blank" rel="noreferrer">README 产品视频 · 英文旁白 / 中英字幕 <Icon name="external" /></a></figcaption>
|
||||
|
||||
@@ -3,8 +3,8 @@ import "./globals.css";
|
||||
import { themeInitializationScript } from "./theme";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "WeKnora — 帮你找到答案,并将知识付诸实践",
|
||||
description: "腾讯开源知识框架 WeKnora,集 RAG 问答、Agent 推理与自动 Wiki 于一体。v0.8.3 新增画廊、多模态 Embedding、原文引用定位、附件按需读取和平台用户管理;支持私有化部署。",
|
||||
title: "Academy — 帮你找到答案,并将知识付诸实践",
|
||||
description: "腾讯开源知识框架 Academy,集 RAG 问答、Agent 推理与自动 Wiki 于一体。v0.8.3 新增画廊、多模态 Embedding、原文引用定位、附件按需读取和平台用户管理;支持私有化部署。",
|
||||
// Reuse the documentation favicon so the homepage adds nothing at the site root.
|
||||
icons: { icon: "/docs/favicon.ico" },
|
||||
};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Restyled to WeKnora portal tokens. Markup class names are unchanged. */
|
||||
/* Restyled to Academy portal tokens. Markup class names are unchanged. */
|
||||
.wk-models {
|
||||
color: var(--wk-ink);
|
||||
background: var(--wk-paper);
|
||||
|
||||
@@ -125,7 +125,7 @@ export function ModelLeaderboard() {
|
||||
<div><dt>correctness</dt><dd><b>陈述是否被证据支持</b></dd></div>
|
||||
<div><dt>completeness</dt><dd><b>关键子问题是否答全</b></dd></div>
|
||||
<div><dt>constraint</dt><dd><b>回答是否遵循明确及必要约束</b></dd></div>
|
||||
<div><dt>数据集</dt><dd><b>WeKnora 评测数据集</b></dd></div>
|
||||
<div><dt>数据集</dt><dd><b>Academy 评测数据集</b></dd></div>
|
||||
<div><dt>判分模型</dt><dd><b>GPT-6 Astra</b></dd></div>
|
||||
<div><dt>分块</dt><dd><code>chunk_size=1000</code>、<code>chunk_overlap=200</code></dd></div>
|
||||
<div><dt>Embed</dt><dd><b>nvidia/Nemotron-3-Embed-8B-BF16</b></dd></div>
|
||||
@@ -177,7 +177,7 @@ export function ModelLeaderboard() {
|
||||
<div><dt>correctness</dt><dd><b>陈述是否被证据支持</b></dd></div>
|
||||
<div><dt>completeness</dt><dd><b>关键子问题是否答全</b></dd></div>
|
||||
<div><dt>constraint</dt><dd><b>回答是否遵循明确及必要约束</b></dd></div>
|
||||
<div><dt>数据集</dt><dd><b>WeKnora 评测数据集</b></dd></div>
|
||||
<div><dt>数据集</dt><dd><b>Academy 评测数据集</b></dd></div>
|
||||
<div><dt>判分模型</dt><dd><b>GPT-6 Astra</b></dd></div>
|
||||
<div><dt>分块</dt><dd><code>chunk_size=1000</code>、<code>chunk_overlap=200</code></dd></div>
|
||||
<div><dt>Embed</dt><dd><b>nvidia/Nemotron-3-Embed-8B-BF16</b></dd></div>
|
||||
@@ -434,9 +434,9 @@ export function ModelLeaderboard() {
|
||||
|
||||
<footer>
|
||||
<div className="wrap foot-in">
|
||||
<span>WeKnora 模型评测</span>
|
||||
<span>Academy 模型评测</span>
|
||||
<span>数据截至 2026-10-08</span>
|
||||
<span>WeKnora 版本 v0.8.0</span>
|
||||
<span>Academy 版本 v0.8.0</span>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -55,12 +55,12 @@ const wikiSlides = [
|
||||
{ name: "版本历史", icon: "history", image: "wiki-revision-history", title: "随时编辑,改动可回溯", description: "直接修订页面,也可让智能体协助维护。查看版本差异,必要时恢复到历史内容。", alt: "Wiki 版本历史:年假页面的历史版本列表、内容差异和回滚入口" },
|
||||
].map(withAvailability);
|
||||
const sandboxSlides = [
|
||||
{ name: "会话级沙箱", icon: "sandbox", image: "skill-sandbox-chat", title: "在同一沙箱中继续执行任务", description: "支持 Docker、E2B、Cube。同一会话的多轮任务共用一个工作区,生成的文件可预览和下载;macOS Lite 还可绑定本机项目目录。", alt: "WeKnora 实际界面:智能体根据知识库生成 Word 文档,并在对话旁打开产物预览", link: guide("03-features/22-skills-sandbox") },
|
||||
{ name: "会话级沙箱", icon: "sandbox", image: "skill-sandbox-chat", title: "在同一沙箱中继续执行任务", description: "支持 Docker、E2B、Cube。同一会话的多轮任务共用一个工作区,生成的文件可预览和下载;macOS Lite 还可绑定本机项目目录。", alt: "Academy 实际界面:智能体根据知识库生成 Word 文档,并在对话旁打开产物预览", link: guide("03-features/22-skills-sandbox") },
|
||||
{ name: "图形桌面与终端", icon: "monitor", shots: [
|
||||
{ label: "图形桌面", icon: "monitor", image: "sandbox-desktop", alt: "WeKnora 实际界面:对话右侧沙箱面板的桌面页签,显示沙箱内的 XFCE 图形桌面与文件管理器" },
|
||||
{ label: "交互终端", icon: "terminal", image: "sandbox-terminal", alt: "WeKnora 实际界面:对话右侧的沙箱终端,列出工作区 output 目录中生成的 Word 文件" },
|
||||
{ label: "图形桌面", icon: "monitor", image: "sandbox-desktop", alt: "Academy 实际界面:对话右侧沙箱面板的桌面页签,显示沙箱内的 XFCE 图形桌面与文件管理器" },
|
||||
{ label: "交互终端", icon: "terminal", image: "sandbox-terminal", alt: "Academy 实际界面:对话右侧的沙箱终端,列出工作区 output 目录中生成的 Word 文件" },
|
||||
], title: "打开桌面和终端,看清每一步", description: "在对话旁连接 Docker、E2B 或 Cube 的交互终端;使用 E2B、Cube 的桌面模板时,还可打开图形桌面并亲自操作。", link: guide("03-features/22-skills-sandbox") },
|
||||
{ name: "技能目录", icon: "skills", image: "skill-catalog", title: "安装、管理和复用技能", description: "从 ClawHub、SkillHub、Git 或 ZIP 安装技能,在空间内管理和复用;macOS Lite 也支持安装并运行本机技能。", alt: "WeKnora 实际界面:工具箱的技能管理页,列出 docx、pptx、pdf 技能及其安装到的沙箱", link: guide("03-features/22-skills-sandbox") },
|
||||
{ name: "技能目录", icon: "skills", image: "skill-catalog", title: "安装、管理和复用技能", description: "从 ClawHub、SkillHub、Git 或 ZIP 安装技能,在空间内管理和复用;macOS Lite 也支持安装并运行本机技能。", alt: "Academy 实际界面:工具箱的技能管理页,列出 docx、pptx、pdf 技能及其安装到的沙箱", link: guide("03-features/22-skills-sandbox") },
|
||||
].map(withAvailability);
|
||||
|
||||
export default function Home() {
|
||||
@@ -73,7 +73,7 @@ export default function Home() {
|
||||
<div className={s.heroGrid}>
|
||||
<h1 id="hero-title">帮你找到答案,<br /><em>并将知识付诸实践。</em></h1>
|
||||
<div className={s.heroAside}>
|
||||
<p className={s.eyebrow}>TENCENT OPEN SOURCE · WEKNORA</p>
|
||||
<p className={s.eyebrow}>TENCENT OPEN SOURCE · ACADEMY</p>
|
||||
<p className={s.heroDescription}>腾讯开源的企业级知识管理框架。<br />汇集团队资料,用于知识问答、任务执行和 Wiki 整理。</p>
|
||||
<div className={s.actions}><a className={s.primary} href="#get-started">开始使用 <Icon name="arrow" /></a><a className={s.secondary} href={repo} target="_blank" rel="noreferrer"><Icon name="github" /> GitHub</a></div>
|
||||
<p className={s.heroNote}>RAG 问答 / Agent 推理 / 自动 Wiki</p>
|
||||
@@ -135,7 +135,7 @@ export default function Home() {
|
||||
<article className={s.startCard}>
|
||||
<div className={s.startLabel}><Image className={s.startBrand} src={`${homeAssets}/brands/tencent-cloud.ico`} alt="腾讯云 Logo" width={32} height={32} /><span>云端部署</span></div>
|
||||
<h3>腾讯云轻量应用服务器</h3>
|
||||
<p>通过应用模板部署 WeKnora,在自己的云服务器上运行。</p>
|
||||
<p>通过应用模板部署 Academy,在自己的云服务器上运行。</p>
|
||||
<a className={s.textLink} href="https://mc.tencent.com/s69nKCVz" target="_blank" rel="noreferrer">前往腾讯云部署 <Icon name="external" /></a>
|
||||
</article>
|
||||
<article className={s.startCard}>
|
||||
@@ -147,6 +147,6 @@ export default function Home() {
|
||||
</div>
|
||||
</div></section>
|
||||
</main>
|
||||
<footer className={`${s.shell} ${s.footer}`}><a className={s.brand} href="/" aria-label="WeKnora 首页"><BrandLogo /></a><p>Tencent Open Source · MIT License</p><nav aria-label="页脚导航"><a href={docs}>文档</a><a href={repo} target="_blank" rel="noreferrer">GitHub <Icon name="external" /></a><a href={`${repo}/blob/main/CHANGELOG.md`} target="_blank" rel="noreferrer">更新日志</a></nav></footer>
|
||||
<footer className={`${s.shell} ${s.footer}`}><a className={s.brand} href="/" aria-label="Academy 首页"><BrandLogo /></a><p>Tencent Open Source · MIT License</p><nav aria-label="页脚导航"><a href={docs}>文档</a><a href={repo} target="_blank" rel="noreferrer">GitHub <Icon name="external" /></a><a href={`${repo}/blob/main/CHANGELOG.md`} target="_blank" rel="noreferrer">更新日志</a></nav></footer>
|
||||
</div>;
|
||||
}
|
||||
Generated
+2
-2
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"name": "weknora_home_page",
|
||||
"name": "academy_home_page",
|
||||
"version": "0.1.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "weknora_home_page",
|
||||
"name": "academy_home_page",
|
||||
"version": "0.1.0",
|
||||
"dependencies": {
|
||||
"next": "16.2.9",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "weknora_home_page",
|
||||
"name": "academy_home_page",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 113 KiB After Width: | Height: | Size: 113 KiB |
@@ -48,5 +48,5 @@ const pendingShots = [...html.matchAll(/website-docs\/homepage\/public(\/docs\/_
|
||||
for (const [, image] of html.matchAll(/\\?"image\\?":\\?"([\w-]+)\\?"[^{}]*?\\?"available\\?":false/g)) pendingShots.push(`/docs/_home/product/${image}.png`);
|
||||
if (pendingShots.length) console.warn(`Product screenshots still pending (placeholder shown): ${[...new Set(pendingShots)].join(', ')}`);
|
||||
assert.match(html, /aria-controls="main-navigation"/);
|
||||
assert.match(html, /aria-label="播放 WeKnora 产品介绍视频/);
|
||||
assert.match(html, /aria-label="播放 Academy 产品介绍视频/);
|
||||
console.log(`Homepage audit passed: product content, README video, navigation anchors, ${assets.size} local assets, and retired design choices.`);
|
||||
@@ -6,7 +6,7 @@ import { test } from 'node:test';
|
||||
import { syncProductScreenshots } from './sync-product-screenshots.mjs';
|
||||
|
||||
test('refreshes changed source images and aliases without replacing homepage-only assets', t => {
|
||||
const root = mkdtempSync(join(tmpdir(), 'weknora-shots-'));
|
||||
const root = mkdtempSync(join(tmpdir(), 'academy-shots-'));
|
||||
t.after(() => rmSync(root, { recursive: true, force: true }));
|
||||
const source = join(root, 'source');
|
||||
const destination = join(root, 'product');
|
||||
|
||||
Reference in new issue
Block a user