Skip to content

Commit

Permalink
Migrate from GitBook to Honkit
Browse files Browse the repository at this point in the history
  • Loading branch information
swaroopch committed Nov 7, 2020
1 parent de52c91 commit 9be9a7a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,21 @@ jobs:

# https://github.com/actions/setup-node
- name: Install Node.js
uses: actions/setup-node@v1.1.0
uses: actions/setup-node@v2-beta
with:
node-version: '14'

# https://github.com/actions/checkout
- name: Checkout
uses: actions/checkout@v2

# https://github.com/GitbookIO/gitbook/blob/master/docs/setup.md
- name: Run Gitbook
# https://github.com/honkit/honkit
- name: Run Honkit
run: |
npm install gitbook-cli
node ./node_modules/gitbook-cli/bin/gitbook.js build . public --log=debug --debug
node ./node_modules/gitbook-cli/bin/gitbook.js pdf . byte-of-python.pdf
node ./node_modules/gitbook-cli/bin/gitbook.js epub . byte-of-python.epub
npm install honkit --save-dev
honkit build . public --log=debug --debug
honkit pdf . byte-of-python.pdf
honkit epub . byte-of-python.epub
# https://github.com/crazy-max/ghaction-github-pages
- name: Push to GitHub Pages
Expand Down

0 comments on commit 9be9a7a

Please sign in to comment.