Skip to content

Commit

Permalink
Merge pull request #1795 from DjangoGirls/epub
Browse files Browse the repository at this point in the history
build and deploy ePub e-book files
  • Loading branch information
fltfx authored Oct 13, 2024
2 parents 04c70d6 + cb56296 commit 00794e2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 00794e2

Please sign in to comment.