diff --git a/web/.eleventy.js b/web/.eleventy.js index 4dbb12b..2a5a14f 100644 --- a/web/.eleventy.js +++ b/web/.eleventy.js @@ -2,8 +2,6 @@ module.exports = function(cfg) { // 静态资源直接复制 cfg.addPassthroughCopy("assets"); - // scan.html 面向消费者,独立维护,直接复制不经模板 - cfg.addPassthroughCopy("scan.html"); // features/ 已改为 .njk 模板,不再需要 passthrough return { diff --git a/web/.eleventyignore b/web/.eleventyignore index 9b0e65c..ff8442d 100644 --- a/web/.eleventyignore +++ b/web/.eleventyignore @@ -1,4 +1,3 @@ -scan.html content/ features/approval.html features/inventory.html diff --git a/web/_data/docs.js b/web/_data/docs.js index 7205c58..d2b02be 100644 --- a/web/_data/docs.js +++ b/web/_data/docs.js @@ -3,9 +3,9 @@ const path = require('path'); const md = require('markdown-it')({ html: false, breaks: false, linkify: false }); const TOC_GROUPS = [ - { group: '快速开始', nums: [1, 2, 3] }, - { group: '业务操作', nums: [4, 5, 6, 7, 8, 9] }, - { group: '基础设置', nums: [10, 11, 12] }, + { group: '快速开始', nums: [1, 2] }, + { group: '业务操作', nums: [3, 4, 5, 6, 7, 8] }, + { group: '设置与答疑', nums: [9, 10] }, ]; module.exports = function() { diff --git a/web/_includes/base.njk b/web/_includes/base.njk index dcb9b47..22fba22 100644 --- a/web/_includes/base.njk +++ b/web/_includes/base.njk @@ -6,17 +6,16 @@ {% if title %}{{ title }} · {% endif %}{{ site.name }} {% if description %}{% endif %} - - +{# 真相源:tokens.css = App 原型 tokens.css 主题A 拷贝;site.css 镜像 atoms.css。 + 全站零外链(无 Google Fonts / unpkg):字体走系统栈(与 App 真机一致),图标走内联雪碧图。 #} + + {% if pageExtraCss %}{% endif %} - - - - + {% if pageStyle %}{% endif %} - +{% include "icons.njk" %} {% include "nav.njk" %} {{ content | safe }} diff --git a/web/_includes/footer.njk b/web/_includes/footer.njk index 0f372f2..60e50ae 100644 --- a/web/_includes/footer.njk +++ b/web/_includes/footer.njk @@ -1,49 +1,41 @@ -