Files
marqdo-site/README.md
cflmy 8f074e9258
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/deploy-edgeone Pipeline failed
feat(site): consume the verified root projection and ship /data with production
- build:release reads the immutable root projection from the root Release
  assets (MARQDO_DATA_RELEASE) or the production origin, verifies it against
  MARQDO_DATA_ROOT_SHA, and deploys the same pointer/snapshot under /data/;
- production pipeline runs prepare-example + build:release; the manual trigger
  supplies the accepted root commit and release base, failing closed without them;
- verify-dist enforces /data consistency in release builds and absence in safe
  builds; verify-deploy probes the pointer, snapshot, both product offers and the
  MQDH download entry;
- pin the site example and evidence to the accepted CLI v3.0.0-rc.7 and document
  the MQDH beta install path in the quick start;
- drop the temporary screenshot helper and keep only durable baseline facts in
  docs/BASELINE.md; progress lives in the repository issues.
2026-12-02 17:27:49 +08:00

2.6 KiB
Raw Permalink Blame History

Marqdo 官网

迈启求道的品牌门户、文稿演示、下载中心与生态导航。站点由 Astro 静态生成,正式文档由 Gitea Wiki 维护——官网不再保存文档正文或站内搜索索引。

开发入口 · 基线与验收 · 运维 · 视觉重构工单 #84

npm ci
npm run check
npm test
npm run build     # astro build + scripts/verify-dist.mjs
npm run preview
npm run test:e2e  # 需要 Playwright Chromium

页面与视觉

  • 路由:/、/download/、/start/、/ecosystem/、/research/、/releases/、/feedback/、/about/、/privacy/,英文在 /en/ 下;/docs/ 与 /en/docs/ 是迁移页,直接指向 Wiki。
  • 设计规则集中在 src/styles/:tokens.css(语义颜色)、typography.css、layout.css(容器与节奏)、components.css(导航、页脚、按钮等)、home.css、demo.css。页面不得自行引入色值、字号或宽度。
  • 首页保留「从一篇文稿开始」的三栏演示(源码 / 知识阅读 / 交互计算)与四种查看模式;宽屏默认并排,窄屏默认单栏但保留全部模式。浏览器计算使用固定圆面积公式,与 CLI 实测证据分开陈述。
  • 页脚为双栏各自居中的结构:左栏项目与版权,右栏头像在上、姓名与联系方式纵向排列。

数据

构建只读消费主仓公开发行投影:npm run build:release 需要 MARQDO_DATA_ROOT_SHA、CI_COMMIT_SHA 与 MARQDO_DATA_RELEASE(根 Release 资产基址,缺省回退到生产源 /data/current.json),校验指针与不可变快照后随站点一起部署 /data/。缺少公开发行快照时,站点以明确的待核验状态与 noindex 发布,不伪造版本、资产或签名状态。

bash scripts/prepare-example.sh 在 Linux x86-64 核验固定 CLI / View 制品并生成示例静态导出;实测命令与结果记录在 docs/BASELINE.md。

部署

.woodpecker/ci.yml 负责 PR 与提交验收。.woodpecker/deploy-edgeone.yml 在受信 main 上构建并部署 EdgeOne Pages Preview 环境,用 scripts/verify-deploy.mjs 复核部署地址与关键页面;Production 发布仅在 manual 事件执行。源码不离开 Gitea,流水线只上传 dist/。

历史内容和页面保留在 legacy-source-v2.9.1 和 legacy-pages-v2.9.1。