feat: 优化 GitHub Actions 合并 PDF 时的文件名生成规则 (#91)#529
Conversation
原来使用简单的 `Aid` 或 `Pid` 进行命名,用户反馈导出的 PDF 名字全是数字看不出是什么。现在: 1. 默认情况下,本子维度的 PDF 命名为 `Atitle`,章节维度的 PDF 命名为 `Atitle_Ptitle`。 2. 新增可选的环境变量和 Action 面板输入参数 `PDF_NAME_RULE`,允许用户自定义生成规则。
|
To prevent beginners from mistakenly submitting PRs, |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe changes introduce a new Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
修复并优化了 GitHub Actions 工作流在启用 PDF 合并时的行为:
原本在使用 Actions 进行本子下载并导出 PDF 时,
filename_rule被强编码映射为Aid或Pid,导致最后生成的 PDF 文件名都是数字。此 PR 进行了以下修改:
AtitleAtitle_Ptitledownload_dispatch.yml中新增选项PDF_NAME_RULE,将该设定暴露在 Actions 面板,允许用户自定义基于自身偏好的 PDF 文件命名规则。参考 Issue:#91
Summary by CodeRabbit
Release Notes