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

Add info file support #378

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get --assume-yes update
sudo apt-get --assume-yes install pandoc texlive-xetex
sudo apt-get --assume-yes install pandoc texlive-xetex texinfo
- name: Build ebooks
run: make
run: make pdf epub info
- name: Pub
uses: actions/upload-artifact@v4
with:
name: r2book
path: r2book.*
path: |
r2book.pdf
r2book.epub
r2book.info.gz

# Release creation
check_release:
Expand Down Expand Up @@ -70,4 +73,7 @@ jobs:
draft: false
prerelease: false
generate_release_notes: true
files: r2book.*
files: |
r2book.pdf
r2book.epub
r2book.info.gz
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ _book/*
*.log
r2book.pdf
r2book.epub
r2book.texi
r2book.info*
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
all: pdf epub

.PHONY: epub pdf pdf_old gmi
.PHONY: epub pdf pdf_old gmi texi info

pdf_old: node_modules
npm run build
Expand Down Expand Up @@ -31,6 +31,15 @@ pdf:
epub:
pandoc $(CHAPTERS) $(PANDOC_OPTIONS) $(PANDOC_EPUB_OPTIONS) -o r2book.epub

texi:
pandoc $(CHAPTERS) $(PANDOC_OPTIONS) -o r2book.texi
sed -i -E 's,@uref\{[0-9a-z/_-]+gemini://,@uref\{gemini://,gI' r2book.texi # fix gemini link

info: texi
rm -f r2book.info r2book.info.gz
makeinfo --force --no-split r2book.texi
gzip -9n r2book.info

MD2GMI=md2gmi/md2gmi

md2gmi:
Expand Down
Loading