{
  "schemaVersion": 1,
  "updatedAt": "2026-08-13",
  "purpose": "供 Maziyang2 授权的 AI、GPT、Codex 与维护工具理解并修改博客结构。",
  "site": {
    "name": "Maziyang2 的博客",
    "owner": "Maziyang2",
    "visibility": "public",
    "editAuthority": "仅 Maziyang2 及其明确授权的 Sites 协作者",
    "canonicalSource": "OpenAI Sites 项目源码",
    "githubDependency": false
  },
  "discovery": {
    "humanReadable": "/readme/",
    "machineReadable": "/.well-known/site-readme.json",
    "navigationVisibility": "不出现在首页、导航或页脚，通过固定地址与 HTML rel=help 发现"
  },
  "content": {
    "postsDirectory": "src/content/posts/",
    "notesDirectory": "src/content/notes/",
    "schemaFile": "src/content.config.ts",
    "ownership": {
      "personal": "用户已确认属于 Maziyang2 的原创内容",
      "inherited": "从原仓库继承，作者或授权信息尚未完全核验",
      "example": "用于演示网站功能的模板内容",
      "unverified": "来源暂时无法确认，修改前需询问用户"
    },
    "hiddenArticles": {
      "instruction": "用户在修改网站时对 AI 或维护工具说“隐藏某篇文章”",
      "field": "hidden",
      "hiddenValue": true,
      "effect": "Markdown 和数据保留在 Sites 项目源码中，但不生成任何公开文章页面或索引记录",
      "excludedFrom": [
        "首页",
        "文章直接 URL",
        "归档",
        "分类",
        "标签",
        "站内搜索",
        "RSS",
        "站点地图"
      ],
      "restore": "将 hidden 改为 false 或删除该字段，并重新构建发布",
      "websiteControl": false
    }
  },
  "routes": {
    "/": "src/pages/index.astro",
    "/notes/": "src/pages/notes.astro",
    "/archive/": "src/pages/archive.astro",
    "/about/": "src/pages/about.astro",
    "/search/": "src/pages/search.astro",
    "/posts/.../": "src/pages/posts/[...slug].astro",
    "/categories/.../": "src/pages/categories/[category].astro",
    "/tags/.../": "src/pages/tags/[tag].astro",
    "/rss.xml": "src/pages/rss.xml.ts",
    "/sitemap.xml": "src/pages/sitemap.xml.ts",
    "/readme/": "src/pages/readme.astro"
  },
  "editTargets": {
    "identityAndOptionalExternalLinks": "src/data/site.config.json",
    "homePage": "src/pages/index.astro",
    "aboutPage": "src/pages/about.astro",
    "navigation": "src/components/Nav.astro",
    "footer": "src/components/Footer.astro",
    "articlePage": "src/pages/posts/[...slug].astro",
    "globalLayoutAndSeo": "src/layouts/BaseLayout.astro",
    "globalStyles": "src/styles/global.css",
    "redirects": "astro.config.mjs"
  },
  "privacyRules": [
    "不得写入或发布密码、Token、API Key、Cookie、Session 或私有证书",
    "不得写入私人邮箱、电话、精确住址、证件信息、内网地址或未公开项目数据",
    "不得把 inherited、example 或 unverified 内容自动标记为 Maziyang2 原创",
    "隐藏文章只是构建规则，不得在公开页面中增加访客可操作的隐藏开关",
    "此公开说明只描述结构，不授予任何写入或管理权限",
    "站点维护和发布不得依赖 GitHub；GitHub 地址只能作为可选的页面内容链接"
  ],
  "releaseRules": [
    "修改前读取 README.md、AGENTS.md 与目标文件",
    "保留用户现有改动，只修改任务需要的文件",
    "运行 npm run build 并检查链接与隐私",
    "发布时复用 .openai/hosting.json 中的现有 Sites 项目，不创建新站点或依赖 GitHub"
  ]
}