Skip to content

Commit e5de136

Browse files
feat(seo): backfill 253 mdx descriptions via deepseek
新增 scripts/generate-descriptions.mjs:默认调 DeepSeek 给所有 description 缺失/空/极短的 MDX 生成精准摘要,写回 frontmatter。 设计: - 默认 dry-run 生成 scripts/.descriptions-report.json - --apply 真写回;--from-report --apply 跳过 LLM 复用已有报表 - --leetcode-only 模板模式(不调 LLM,离线 fallback) - --limit=N 小批量试运行 - Surgical edit 只动 description 行,不重格式化 yaml,git diff 干净 幂等性:已合格 description (>= 60 字符) 跳过,重跑安全。 本次跑完 DeepSeek 改了 253 个 MDX frontmatter description: - median 134 字符,min 64,max 264 - 0 errors,~$0.05 总成本 - 中英文按 .en 后缀决定生成语言 .gitignore 追加 scripts/.descriptions-report.json(dry-run 产物)。
1 parent 4ae561b commit e5de136

255 files changed

Lines changed: 901 additions & 157 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,6 @@ AGENTS.md
6262

6363
.npmrc
6464
/.env.*
65+
66+
# scripts/generate-descriptions.mjs 的 dry-run / apply 报表(产物,不进 git)
67+
scripts/.descriptions-report.json

content/docs/career/events/coffee-chat.en.md

Lines changed: 1 addition & 1 deletion

content/docs/career/events/coffee-chat.md

Lines changed: 1 addition & 1 deletion

content/docs/career/events/event-takeway.en.md

Lines changed: 1 addition & 1 deletion

content/docs/career/events/event-takeway.md

Lines changed: 1 addition & 1 deletion

content/docs/career/index.mdx

Lines changed: 1 addition & 1 deletion

content/docs/career/interview-prep/bq.en.md

Lines changed: 1 addition & 1 deletion

content/docs/career/interview-prep/bq.md

Lines changed: 1 addition & 1 deletion

content/docs/career/interview-prep/interview-tips.en.mdx

Lines changed: 1 addition & 1 deletion

content/docs/career/interview-prep/interview-tips.mdx

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)