diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c9341696806..aa71571cfc3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -23,10 +23,16 @@ jobs: uses: actions/checkout@v4 with: persist-credentials: false + - uses: awalsh128/cache-apt-pkgs-action@v1 + with: + packages: calibre rename - name: Install and Build run: | npm install npx honkit build + npx honkit epub + rename 's/^book/django-girls-tutorial/' book_*.epub + mv *.epub _book/ - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: diff --git a/en/README.md b/en/README.md index 3ad2630eb2c..d646e798ad2 100644 --- a/en/README.md +++ b/en/README.md @@ -8,6 +8,11 @@ Welcome to the Django Girls Tutorial! We are happy to see you here. :) In this t 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. :) +{% if output.name != "ebook" %} +> Do you want to read this tutorial on your e-reader? +> Then [download the Django Girls Tutorial as an e-book in ePub format](../django-girls-tutorial_{{ book.language }}.epub). +{% endif %} + ## Introduction 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?