Skip to content

Manual to EPUB: convert to XHTML first #335

Manual to EPUB: convert to XHTML first

Manual to EPUB: convert to XHTML first #335

Workflow file for this run

name: Manual to EPUB
on: [pull_request, push]
jobs:
convert:
runs-on: ubuntu-latest
container:
image: ghcr.io/linuxserver/calibre
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install HTML Tidy
run: |
apt-get update
apt-get install -y tidy
- name: Convert HTML to XHTML with Tidy
run: tidy -asxhtml -utf8 -o user_guide/index.xhtml user_guide/index.html
- name: Convert ebook
run: ebook-convert user_guide/index.xhtml koreader_user_guide.epub
- name: Upload
uses: actions/upload-artifact@v4
with:
name: KOReader Manual EPUB
path: koreader_user_guide.epub