Skip to content

Commit 00794e2

Browse files
authored
Merge pull request #1795 from DjangoGirls/epub
build and deploy ePub e-book files
2 parents 04c70d6 + cb56296 commit 00794e2

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/deploy.yml

+6
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,16 @@ jobs:
2323
uses: actions/checkout@v4
2424
with:
2525
persist-credentials: false
26+
- uses: awalsh128/cache-apt-pkgs-action@v1
27+
with:
28+
packages: calibre rename
2629
- name: Install and Build
2730
run: |
2831
npm install
2932
npx honkit build
33+
npx honkit epub
34+
rename 's/^book/django-girls-tutorial/' book_*.epub
35+
mv *.epub _book/
3036
- name: Upload artifact
3137
uses: actions/upload-pages-artifact@v3
3238
with:

en/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ Welcome to the Django Girls Tutorial! We are happy to see you here. :) In this t
88

99
As with all unknown things, this is going to be an adventure - but no worries, since you already worked up the courage to be here, you'll be just fine. :)
1010

11+
{% if output.name != "ebook" %}
12+
> Do you want to read this tutorial on your e-reader?
13+
> Then [download the Django Girls Tutorial as an e-book in ePub format](../django-girls-tutorial_{{ book.language }}.epub).
14+
{% endif %}
15+
1116
## Introduction
1217

1318
Have you ever felt that the world is more and more about technology to which you cannot (yet) relate? Have you ever wondered how to create a website but have never had enough motivation to start? Have you ever thought that the software world is too complicated for you to even try doing something on your own?

0 commit comments

Comments
 (0)