From f1054228382124b323d65ff99e6c3a054e279615 Mon Sep 17 00:00:00 2001 From: Raphael Borun Das Gupta Date: Sat, 29 Apr 2023 14:09:37 +0200 Subject: [PATCH 1/3] build and deploy ePub e-book files --- .github/workflows/deploy.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 26085e3df72..272cf55f1c1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -23,10 +23,15 @@ jobs: uses: actions/checkout@v3 with: persist-credentials: false + - uses: awalsh128/cache-apt-pkgs-action@v1 + with: + packages: calibre - name: Install and Build run: | npm install npx honkit build + npx honkit epub + mv book_*.epub _book/ - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: From 06833a6745280ef7cf6bae0756af3fd3ef8a1073 Mon Sep 17 00:00:00 2001 From: Raphael Borun Das Gupta Date: Thu, 4 May 2023 00:29:06 +0200 Subject: [PATCH 2/3] name ePub files sensibly --- .github/workflows/deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 272cf55f1c1..96210bfd3c6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,13 +25,14 @@ jobs: persist-credentials: false - uses: awalsh128/cache-apt-pkgs-action@v1 with: - packages: calibre + packages: calibre rename - name: Install and Build run: | npm install npx honkit build npx honkit epub - mv book_*.epub _book/ + rename 's/^book/django-girls-tutorial/' book_*.epub + mv *.epub _book/ - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: From cb56296b1c1ff19d8054ca5ead80a68fde12b491 Mon Sep 17 00:00:00 2001 From: Raphael Borun Das Gupta Date: Sun, 8 Oct 2023 11:46:54 +0200 Subject: [PATCH 3/3] link to ePub e-book in HTML (web) version (In the English version, for now. Translations can be contributed via Crowdin.) --- en/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/en/README.md b/en/README.md index 147df99bf89..fdac73cbf1d 100644 --- a/en/README.md +++ b/en/README.md @@ -9,6 +9,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?