Skip to content

Commit 056e008

Browse files
authored
Migrate from GitBook to Honkit
https://github.com/honkit/honkit
1 parent de52c91 commit 056e008

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,21 @@ jobs:
1515

1616
# https://github.com/actions/setup-node
1717
- name: Install Node.js
18-
uses: actions/[email protected]
18+
uses: actions/setup-node@v2-beta
19+
with:
20+
node-version: '14'
1921

2022
# https://github.com/actions/checkout
2123
- name: Checkout
2224
uses: actions/checkout@v2
2325

24-
# https://github.com/GitbookIO/gitbook/blob/master/docs/setup.md
25-
- name: Run Gitbook
26+
# https://github.com/honkit/honkit
27+
- name: Run Honkit
2628
run: |
27-
npm install gitbook-cli
28-
node ./node_modules/gitbook-cli/bin/gitbook.js build . public --log=debug --debug
29-
node ./node_modules/gitbook-cli/bin/gitbook.js pdf . byte-of-python.pdf
30-
node ./node_modules/gitbook-cli/bin/gitbook.js epub . byte-of-python.epub
29+
npm install honkit --save-dev
30+
honkit build . public --log=debug --debug
31+
honkit pdf . byte-of-python.pdf
32+
honkit epub . byte-of-python.epub
3133
3234
# https://github.com/crazy-max/ghaction-github-pages
3335
- name: Push to GitHub Pages

0 commit comments

Comments
 (0)