Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build PDF on Actions, convert to EPUB and MOBI and expose as artifacts #3515

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

prekel
Copy link
Contributor

@prekel prekel commented Jan 5, 2022

Command for converting md to epub is borrowed from #3514. Runned Action with artifacts looks like this: https://github.com/prekel/book/actions/runs/1717097234

@prekel prekel changed the title pdf build, epub-mobi convert and artifacts in ci Build PDF on Actions, convert to EPUB and MOBI and expose as artifacts Jan 5, 2022
no explicit targets on build

install texlive-xetex

install texlive-fonts-recommended

install texlive-fonts-extra

mobi artifact
@prekel prekel marked this pull request as ready for review January 5, 2022 05:44
@prekel
Copy link
Contributor Author

prekel commented Jan 10, 2022

I note that Pandoc filter isn't working for epub - crosslinks are empty. I will try to fix

@prekel prekel marked this pull request as draft January 10, 2022 12:15
@prekel
Copy link
Contributor Author

prekel commented Jan 10, 2022

There is no way to pass arguments to pandoc filter for distinguishing tex and epub with one filter executable. So, I create a filter for epub named pandoc_rwo_epub and rename the current filter pandoc_rwo to pandoc_rwo_tex.

A new filter for epub successfully handles cross-references, but I don't know how to display block-notes in epub. Thus, block-notes are just text index heading-6.

@prekel prekel marked this pull request as ready for review January 10, 2022 15:11
@yminsky yminsky requested a review from avsm January 17, 2022 21:35
@yminsky
Copy link
Member

yminsky commented Jan 17, 2022

This looks cool! But I'll defer to @avsm for actually reviewing the build rules.

@prekel prekel marked this pull request as draft February 5, 2022 06:10
@prekel
Copy link
Contributor Author

prekel commented Feb 5, 2022

The latest pandoc (2.17.1 from brew) breaks the build (https://github.com/realworldocaml/book/runs/5076046684?check_suite_focus=true), so I switch to apt (2.5).

@prekel prekel marked this pull request as ready for review February 5, 2022 08:36
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.

2 participants