如何新增一个项目

站点内容由 assets/projects.js 驱动,新增项目分三步:

  1. 在 projects/ 下建一个以项目 id 命名的目录,例如 projects/crm/
  2. 把文档 HTML 放进 projects/crm/docs/,原型构建产物放进 projects/crm/prototype/
  3. 在 assets/projects.js 的 PROJECTS 数组里追加一条配置,重新上传这三个路径即可

配置示例:

{
  id: 'crm',
  name: 'CRM 系统',
  desc: '一句话说明这个项目解决什么问题',
  tags: ['销售', '客户'],
  status: '进行中',
  updated: '2026-09-07',
  docs: [
    { name: '功能需求总览', file: 'requirement.html', note: '补充说明' }
  ],
  prototype: {
    dir: 'prototype',
    entry: 'index.html',
    note: '原型技术栈说明',
    pages: [{ name: '客户列表', hash: '#/customers' }]
  }
}

文档文件名建议用英文(如 requirement.html),避免中文路径在部分浏览器下的编码差异。