Skip to content

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

Open
prekel wants to merge 18 commits into
realworldocaml:masterfrom
prekel:pdf-epub-mobi-pr
Open

Build PDF on Actions, convert to EPUB and MOBI and expose as artifacts#3515
prekel wants to merge 18 commits into
realworldocaml:masterfrom
prekel:pdf-epub-mobi-pr

Conversation

@prekel

@prekel prekel commented Jan 5, 2022

Copy link
Copy Markdown
Contributor

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

prekel commented Jan 10, 2022

Copy link
Copy Markdown
Contributor Author

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

prekel commented Jan 10, 2022

Copy link
Copy Markdown
Contributor Author

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

yminsky commented Jan 17, 2022

Copy link
Copy Markdown
Member

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

prekel commented Feb 5, 2022

Copy link
Copy Markdown
Contributor Author

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