[liuhui998/gitbook] 7da161: 添加 sitemap.xml 生成功能

0 views
Skip to first unread message

liuhui

unread,
Dec 11, 2025, 9:39:45 AM (5 days ago) Dec 11
to gitbo...@googlegroups.com
Branch: refs/heads/master
Home: https://github.com/liuhui998/gitbook
Commit: 7da1616a7947fc76f9117fe1249380a822ddb193
https://github.com/liuhui998/gitbook/commit/7da1616a7947fc76f9117fe1249380a822ddb193
Author: Peter.Liu <liuh...@gmail.com>
Date: 2025-12-11 (Thu, 11 Dec 2025)

Changed paths:
M CLAUDE.md
M Rakefile
A script/sitemap.rb

Log Message:
-----------
添加 sitemap.xml 生成功能

本次提交为项目添加了 SEO 优化的 sitemap 生成功能:

新增功能:
- script/sitemap.rb: sitemap 自动生成脚本
- rake sitemap: 新的构建任务,自动生成 sitemap.xml
- 支持自动扫描所有 HTML 章节文件
- 智能设置页面优先级 (index.html: 1.0, 第1章: 0.9, 其他: 0.8)
- 所有页面更新频率设置为 monthly

文档更新:
- CLAUDE.md: 添加 sitemap 构建步骤说明
- CLAUDE.md: 更新生成文件列表

技术细节:
- 基础 URL: https://gitbook.lkiuhui998.com
- 输出位置: output/book/sitemap.xml
- 符合 sitemap.org 标准的 XML 格式
- 自动依赖 HTML 生成任务

Add sitemap.xml generation feature

This commit adds SEO-optimized sitemap generation functionality:

New features:
- script/sitemap.rb: Automatic sitemap generation script
- rake sitemap: New build task to generate sitemap.xml
- Automatically scans all HTML chapter files
- Smart priority settings (index.html: 1.0, Chapter 1: 0.9, Others: 0.8)
- All pages set to monthly update frequency

Documentation updates:
- CLAUDE.md: Added sitemap build instructions
- CLAUDE.md: Updated generated files list

Technical details:
- Base URL: https://gitbook.lkiuhui998.com
- Output location: output/book/sitemap.xml
- Compliant with sitemap.org XML standards
- Automatically depends on HTML generation task



To unsubscribe from these emails, change your notification settings at https://github.com/liuhui998/gitbook/settings/notifications
Reply all
Reply to author
Forward
0 new messages