Skip to content

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

fix(website): align development release labels with generated pages

To3akaRin96acfb0f372b
diff --git a/website/src/pages/gallery.astro b/website/src/pages/gallery.astro
index 9d9f67a2..556c864c 100644
--- a/website/src/pages/gallery.astro
+++ b/website/src/pages/gallery.astro
@@ -97,7 +97,7 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
<footer>
<div class="shell footer-inner">
<span data-en="Generated from Archify's checked-in examples. No hand-authored capability claims." data-zh="由 Archify 仓库内示例自动生成,不手写可能过期的能力声明。">Generated from Archify's checked-in examples. No hand-authored capability claims.</span>
- <span data-en={`Archify v${version} · stable · MIT`} data-zh={`Archify v${version} · 稳定版 · MIT`}>Archify v{version} · stable · MIT</span>
+ <span data-en={`Archify v${version} · development · MIT`} data-zh={`Archify v${version} · 开发版 · MIT`}>Archify v{version} · development · MIT</span>
</div>
</footer>
diff --git a/website/src/pages/guide.astro b/website/src/pages/guide.astro
index 054500b3..ab4adf22 100644
--- a/website/src/pages/guide.astro
+++ b/website/src/pages/guide.astro
@@ -50,7 +50,7 @@ import pageScript from '../scripts/guide.js?raw';
</section>
</main>
- <footer><div class="shell"><span data-i18n="footerLeft">Generated from the same recipe source as the Archify CLI.</span><span>archify guide "your scenario"</span><span data-i18n="versionLabel">Scenario guide / stable / v{version}</span></div></footer>
+ <footer><div class="shell"><span data-i18n="footerLeft">Generated from the same recipe source as the Archify CLI.</span><span>archify guide "your scenario"</span><span data-i18n="versionLabel">Scenario guide / development / v{version}</span></div></footer>
<script is:inline id="guide-data" type="application/json" set:html={jsonScript(guide)}></script>
<script is:inline src="assets/site-language.js"></script>
diff --git a/website/src/pages/index.astro b/website/src/pages/index.astro
index 716f0338..d42c187f 100644
--- a/website/src/pages/index.astro
+++ b/website/src/pages/index.astro
@@ -21,7 +21,7 @@ import pageScript from '../scripts/index.js?raw';
<div class="hero-intro">
<div class="hero-badge fade-up">
<div class="pulse-dot"></div>
- <span data-i18n="hero-badge">Agent Skill &nbsp;·&nbsp; stable &nbsp;·&nbsp; v{version}</span>
+ <span data-i18n="hero-badge">Agent Skill &nbsp;·&nbsp; development &nbsp;·&nbsp; v{version}</span>
</div>
<h1 class="fade-up d1" data-i18n="hero-h1">From plain English<br>to architecture <em>you can trust.</em></h1>
<p class="hero-sub fade-up d2" data-i18n="hero-sub">Describe your system in chat. Archify generates a polished, explorable HTML diagram — with progressive MAP → READ → FULL detail, a semantic camera, path-aware stories, motion, and ultra-crisp export built in.</p>
@@ -451,7 +451,7 @@ import pageScript from '../scripts/index.js?raw';
<a class="nav-logo" href="#">
<Brand />
</a>
- <p class="footer-meta" data-i18n="footer-meta">stable &nbsp;·&nbsp; v{version} &nbsp;·&nbsp; MIT License<br>Based on Cocoon-AI/architecture-diagram-generator</p>
+ <p class="footer-meta" data-i18n="footer-meta">development &nbsp;·&nbsp; v{version} &nbsp;·&nbsp; MIT License<br>Based on Cocoon-AI/architecture-diagram-generator</p>
</div>
<div class="footer-links">
<a href="https://github.com/tt-a1i/archify" target="_blank" rel="noopener">GitHub</a>
diff --git a/website/src/pages/start.astro b/website/src/pages/start.astro
index 7b8baeca..fd16d7b2 100644
--- a/website/src/pages/start.astro
+++ b/website/src/pages/start.astro
@@ -85,7 +85,7 @@ import pageScript from '../scripts/start.js?raw';
</section>
<footer class="page-footer">
- <span data-en={`Archify v${version} · stable · self-contained HTML · typed JSON source`} data-zh={`Archify v${version} · 稳定版 · 独立 HTML · 类型化 JSON 源`}>Archify v{version} · stable · self-contained HTML · typed JSON source</span>
+ <span data-en={`Archify v${version} · development · self-contained HTML · typed JSON source`} data-zh={`Archify v${version} · 开发版 · 独立 HTML · 类型化 JSON 源`}>Archify v{version} · development · self-contained HTML · typed JSON source</span>
<span id="copy-status" role="status" aria-live="polite"></span>
<a href="https://github.com/tt-a1i/archify" data-en="View source on GitHub ↗" data-zh="在 GitHub 查看源码 ↗">View source on GitHub ↗</a>
</footer>
diff --git a/website/src/scripts/guide.js b/website/src/scripts/guide.js
index 0f00e2cd..5e6ff866 100644
--- a/website/src/scripts/guide.js
+++ b/website/src/scripts/guide.js
@@ -9,12 +9,12 @@
var lastRecipe = null;
var copy = {
en: {
- navGuide:'Guide',navProof:'Proof Lab',navStart:'Start',navInstall:'Install Skill',versionLabel:'Scenario guide / stable / v[[ARCHIFY_VERSION]]',eyebrow:'Question-first diagramming', headline:'Choose the question.<br>Get the <em>right diagram.</em>', lede:'Describe what your audience needs to understand. Archify recommends one bounded visual recipe—plus the evidence it must contain, when not to use it, and a prompt you can copy.',
+ navGuide:'Guide',navProof:'Proof Lab',navStart:'Start',navInstall:'Install Skill',versionLabel:'Scenario guide / development / v[[ARCHIFY_VERSION]]',eyebrow:'Question-first diagramming', headline:'Choose the question.<br>Get the <em>right diagram.</em>', lede:'Describe what your audience needs to understand. Archify recommends one bounded visual recipe—plus the evidence it must contain, when not to use it, and a prompt you can copy.',
metricRecipes:'real-world<br>recipes',metricModes:'typed diagram<br>modes',metricRuntime:'runtime<br>dependencies',chooserTitle:'What must the diagram explain?',chooserBody:'Write a situation, not a diagram type. Specific system facts produce a stronger recommendation.',placeholder:'Example: Show an API request with JWT auth, a Redis cache miss, database fallback, and async tracing.',recommend:'Recommend a recipe →',clear:'Clear',libraryEyebrow:'Recipe library',libraryTitle:'12 small, opinionated starting points.',libraryBody:'Each recipe answers one technical question. That boundary keeps the result legible, reviewable, and honest about missing evidence.',footerLeft:'Generated from the same recipe source as the Archify CLI.',all:'All recipes',recommended:'Recommended recipe',use:'Use when',avoid:'Avoid when',must:'Evidence to include',presentation:'Presentation',prompt:'Copy-ready prompt',copyPrompt:'Copy prompt',copied:'Copied',alternatives:'Other possible fits:',confidence:'confidence',open:'Open recipe',proofReady:'Verified proof',proofLink:'Open verified example ↗',
samples:[['API + cache miss','Show an API request with JWT auth, a Redis cache miss, database fallback, and async tracing.'],['Kafka + DLQ','Map Kafka topics, ordered processors, consumer groups, replay, state stores, and the dead-letter queue.'],['Incident response','Show how responders detect, triage, mitigate, escalate, communicate, and verify recovery.']]
},
zh: {
- navGuide:'场景指南',navProof:'验证作品集',navStart:'快速上手',navInstall:'安装技能',versionLabel:'场景指南 / 稳定版 / v[[ARCHIFY_VERSION]]',eyebrow:'先问题,后图表',headline:'先选对问题,<br>再得到<em>对的图。</em>',lede:'描述受众真正需要理解的内容。Archify 会推荐一个有边界的视觉配方,同时给出证据清单、禁用条件和可复制提示词。',
+ navGuide:'场景指南',navProof:'验证作品集',navStart:'快速上手',navInstall:'安装技能',versionLabel:'场景指南 / 开发版 / v[[ARCHIFY_VERSION]]',eyebrow:'先问题,后图表',headline:'先选对问题,<br>再得到<em>对的图。</em>',lede:'描述受众真正需要理解的内容。Archify 会推荐一个有边界的视觉配方,同时给出证据清单、禁用条件和可复制提示词。',
metricRecipes:'个真实场景<br>配方',metricModes:'种类型化<br>图表模式',metricRuntime:'个运行时<br>依赖',chooserTitle:'这张图必须解释什么?',chooserBody:'写清场景,不要只写图表类型。系统事实越具体,推荐越可靠。',placeholder:'例如:展示带 JWT 鉴权、Redis 缓存未命中、数据库回退和异步追踪的 API 请求。',recommend:'推荐配方 →',clear:'清空',libraryEyebrow:'配方库',libraryTitle:'12 个小而专的起点。',libraryBody:'每个配方只回答一个技术问题。清晰的边界让图更易读、可评审,也不会掩盖证据缺口。',footerLeft:'网页与 Archify CLI 使用同一份配方数据生成。',all:'全部配方',recommended:'推荐配方',use:'适合',avoid:'不要这样用',must:'必须包含的证据',presentation:'表现建议',prompt:'可直接复制的提示词',copyPrompt:'复制提示词',copied:'已复制',alternatives:'其他可能:',confidence:'置信度',open:'打开配方',proofReady:'已验证成品',proofLink:'打开验证成品 ↗',
samples:[['API + 缓存未命中','展示带 JWT 鉴权、Redis 缓存未命中、数据库回退和异步追踪的 API 请求。'],['Kafka + 死信','梳理 Kafka Topic、有序处理器、消费者组、重放、状态存储和死信队列。'],['事故处置','展示响应者如何发现、分诊、缓解、升级、沟通并验证恢复。']]
}
diff --git a/website/src/scripts/index.js b/website/src/scripts/index.js
index 983788cb..52343149 100644
--- a/website/src/scripts/index.js
+++ b/website/src/scripts/index.js
@@ -5,7 +5,7 @@
const LANGS = {
en: {
'nav-guide':'Guide','nav-gallery':'Proof Lab','nav-start':'Start','nav-install':'Install Skill',
- 'hero-badge':'Agent Skill &nbsp;·&nbsp; stable &nbsp;·&nbsp; v[[ARCHIFY_VERSION]]',
+ 'hero-badge':'Agent Skill &nbsp;·&nbsp; development &nbsp;·&nbsp; v[[ARCHIFY_VERSION]]',
'hero-h1':'From plain English<br>to architecture <em>you can trust.</em>',
'hero-sub':'Describe your system in chat. Archify generates a polished, explorable HTML diagram — with progressive MAP → READ → FULL detail, a semantic camera, path-aware stories, motion, and ultra-crisp export built in.',
'hero-cta':'Choose the right diagram','hero-gallery':'Explore proof gallery',
@@ -57,7 +57,7 @@
'step2-h':'Describe your system','step2-p':'Describe components, connections, and cloud services — or ask your agent to analyze the repository first.',
'step3-h':'Ask your agent to draw it','step3-p':'Tell your agent to use Archify. It generates a self-contained HTML file you can open in any browser and refine in chat.',
'kbd-label':'Keyboard shortcuts','kbd-guide':'Diagram guide','kbd-theme':'Toggle theme','kbd-find':'Find node / route endpoint','kbd-route':'Trace and inspect a route','kbd-radar':'Semantic radar','kbd-lens':'Compare semantic kinds','kbd-present':'Presentation stage','kbd-export':'Open export menu','kbd-focus':'Focus node','kbd-zoom':'Reading depth / reset','kbd-nav':'Navigate menu','kbd-close':'Close menu',
- 'footer-meta':'stable &nbsp;·&nbsp; v[[ARCHIFY_VERSION]] &nbsp;·&nbsp; MIT License<br>Based on Cocoon-AI/architecture-diagram-generator',
+ 'footer-meta':'development &nbsp;·&nbsp; v[[ARCHIFY_VERSION]] &nbsp;·&nbsp; MIT License<br>Based on Cocoon-AI/architecture-diagram-generator',
'cta-h':'Describe it once.<br><em>Share the map.</em>',
'cta-sub':'One command installs the checked skill for Cursor, Claude Code, Codex, or OpenCode — and your next diagram is a chat message away.',
'cta-install':'Install the skill',
@@ -65,7 +65,7 @@
},
zh: {
'nav-guide':'场景指南','nav-gallery':'验证作品集','nav-start':'快速上手','nav-install':'安装技能',
- 'hero-badge':'Agent 技能 &nbsp;·&nbsp; 稳定版 &nbsp;·&nbsp; v[[ARCHIFY_VERSION]]',
+ 'hero-badge':'Agent 技能 &nbsp;·&nbsp; 开发版 &nbsp;·&nbsp; v[[ARCHIFY_VERSION]]',
'hero-h1':'用自然语言,<br>生成<em>可信的架构图。</em>',
'hero-sub':'在对话中描述你的系统,Archify 生成精美、可探索的 HTML 技术图——信息会按 MAP → READ → FULL 渐进展开,并内置语义镜头、路径故事、动态效果和超清导出。',
'hero-cta':'选择合适的图','hero-gallery':'查看验证作品集',
@@ -117,7 +117,7 @@
'step2-h':'描述你的系统','step2-p':'描述组件、连接关系和云服务,也可以先让 agent 分析代码仓库。',
'step3-h':'让 agent 绘制','step3-p':'告诉 agent 使用 Archify,它会生成可在任意浏览器打开的单文件 HTML,并可继续在对话中迭代。',
'kbd-label':'键盘快捷键','kbd-guide':'图表指南','kbd-theme':'切换主题','kbd-find':'查找节点 / 路径端点','kbd-route':'探查并检查路径','kbd-radar':'语义雷达','kbd-lens':'对比语义类型','kbd-present':'演示舞台','kbd-export':'打开导出菜单','kbd-focus':'聚焦节点','kbd-zoom':'阅读层级 / 复位','kbd-nav':'菜单导航','kbd-close':'关闭菜单',
- 'footer-meta':'稳定版 &nbsp;·&nbsp; v[[ARCHIFY_VERSION]] &nbsp;·&nbsp; MIT 许可证<br>基于 Cocoon-AI/architecture-diagram-generator',
+ 'footer-meta':'开发版 &nbsp;·&nbsp; v[[ARCHIFY_VERSION]] &nbsp;·&nbsp; MIT 许可证<br>基于 Cocoon-AI/architecture-diagram-generator',
'cta-h':'描述一次,<br><em>分享这张图。</em>',
'cta-sub':'一条命令即可为 Cursor、Claude Code、Codex 或 OpenCode 安装经过检查的技能——你的下一张架构图,只差一句对话。',
'cta-install':'安装技能',
diff --git a/website/test/migration.test.mjs b/website/test/migration.test.mjs
index 128e96e5..0ee4d930 100644
--- a/website/test/migration.test.mjs
+++ b/website/test/migration.test.mjs
@@ -67,6 +67,24 @@ for (const page of pages) {
});
}
+test('homepage version labels and translations match the release identity baseline', () => {
+ const baseline = parse(read(docs, 'index.html'));
+ const generated = parse(read(dist, 'index.html'));
+ for (const key of ['hero-badge', 'footer-meta']) {
+ const labels = (tree) => [...elements(tree, 'span'), ...elements(tree, 'p')]
+ .filter(node => attr(node, 'data-i18n') === key).map(semantic);
+ assert.equal(labels(baseline).length, 1);
+ assert.deepEqual(labels(generated), labels(baseline), `${key}: initial identity`);
+ const translations = (tree) => elements(tree, 'script').flatMap(node => {
+ const source = (node.childNodes || []).map(child => child.value || '').join('');
+ return [...source.matchAll(new RegExp(`['"]${key}['"]\\s*:\\s*(['"])(.*?)\\1`, 'g'))]
+ .map(match => match[2]);
+ });
+ assert.equal(translations(baseline).length, 2, 'both built-in languages must be covered');
+ assert.deepEqual(translations(generated), translations(baseline), `${key}: translated identity`);
+ }
+});
+
test('all existing non-page public URLs retain exact file bytes', () => {
function visit(dir, rel = '') {
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {