From 9be9a7a88a88cf29adbf3364ccbe24d1cbd543c6 Mon Sep 17 00:00:00 2001 From: Swaroop C H Date: Sat, 7 Nov 2020 00:31:16 -0800 Subject: [PATCH] Migrate from GitBook to Honkit https://github.com/honkit/honkit --- .github/workflows/main.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e0f50440..93e63439 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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