Skip to content

Release epub#108

Open
rick1026 wants to merge 3 commits into
luongnv89:mainfrom
rick1026:release-epub
Open

Release epub#108
rick1026 wants to merge 3 commits into
luongnv89:mainfrom
rick1026:release-epub

Conversation

@rick1026

Copy link
Copy Markdown

Description

Brief summary of what this PR does.

Type of Change

  • New example or template
  • Documentation improvement
  • Bug fix
  • Feature guide
  • Other (please describe)

Related Issues

Closes #(issue number)

Changes Made

  • Change 1
  • Change 2
  • Change 3

What to Review

What should reviewers focus on?

Files Changed

  • path/to/file1.md
  • path/to/file2.md

Testing

How have you tested this?

  • Tested locally with Claude Code
  • Verified examples work
  • Checked links and references
  • Reviewed for typos and clarity

Checklist

  • Follows project structure and conventions
  • Includes clear documentation/examples
  • Code/examples are copy-paste ready
  • All links are verified and working
  • No sensitive information included (keys, tokens, credentials)
  • Updated relevant README files
  • Commit message follows conventional commit format
  • No large files (>1MB) added

Screenshots or Examples

If applicable, show what this adds:

[Example code or before/after comparison]

Breaking Changes

Does this change any existing content or behavior?

  • No breaking changes
  • Yes, and it's documented below

If yes, please describe:

Additional Notes

Any other information for reviewers?

toanalien and others added 3 commits April 7, 2026 11:56
Extend the release workflow to build separate EPUB artifacts for en, vi,
and zh in parallel via a matrix job, then publish all built files under
a single GitHub Release. Using fail-fast: false so a failure in one
language does not block releasing the others.

Also refactor build_epub.py to drive language-specific paths, filenames,
and titles from a mapping, and add zh support (title/subtitle + choice).
…pty-dist guard

- Wire language-specific subtitle through EPUBConfig.subtitle field so
  create_cover_image renders the correct cover text per --lang instead
  of always using the hardcoded English defaults
- Add continue-on-error for zh matrix leg (zh/ content not yet populated)
  and explicit permissions: contents: read on the build job
- Add 'Check artifacts exist' guard step before Create Release so an
  all-languages-fail scenario produces a clear failure rather than
  confusing softprops errors; make 'List built artifacts' tolerant of
  an empty dist/
…h module constant

Language metadata (subdir, filename, title, subtitle) was stored as
EPUBConfig instance fields and then accessed as class-level attributes
in lang_map — a fragile pattern that silently breaks if any field loses
its default. Move this data to a module-level _LANG_METADATA dict and
remove the now-redundant vi_/en_/zh_ title/subtitle fields from EPUBConfig.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants