Fix CI build to use honkit directly

This commit is contained in:
yeasy
2026-03-17 00:23:32 -07:00
parent 608949b9ee
commit bef369dc27
2 changed files with 9 additions and 4 deletions

View File

@@ -15,10 +15,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v6.0.2 - uses: actions/checkout@v6.0.2
- name: Build Gitbook - uses: actions/setup-node@v6
uses: docker://yeasy/docker_practice
with: with:
args: build node-version: 20
- name: Install docs dependencies
run: npm install
- name: Build Gitbook
run: npm run honkit:build
- name: Build Gitbook Docker Image - name: Build Gitbook Docker Image
if: github.repository == 'docker-practice/docker_practice' if: github.repository == 'docker-practice/docker_practice'
run: | run: |
@@ -68,7 +71,6 @@ jobs:
run: | run: |
export NODE_OPTIONS=--openssl-legacy-provider export NODE_OPTIONS=--openssl-legacy-provider
sudo rm -rf _book sudo rm -rf _book
npm i
git clone https://github.com/docker-practice/.vuepress .vuepress2 git clone https://github.com/docker-practice/.vuepress .vuepress2
cp -r .vuepress2/. .vuepress/ cp -r .vuepress2/. .vuepress/

View File

@@ -7,7 +7,10 @@
"chalk": "^5.6.2", "chalk": "^5.6.2",
"commander": "^14.0.3", "commander": "^14.0.3",
"esm": "^3.0.0", "esm": "^3.0.0",
"gitbook-plugin-editlink": "^1.0.2",
"gitbook-plugin-github": "^3.0.0",
"gitbook-plugin-mermaid-gb3": "^2.1.0", "gitbook-plugin-mermaid-gb3": "^2.1.0",
"gitbook-plugin-page-treeview": "^3.0.6",
"honkit": "^6.1.6", "honkit": "^6.1.6",
"vuepress": "1.9.10", "vuepress": "1.9.10",
"vuepress-plugin-container": "^2.1.5", "vuepress-plugin-container": "^2.1.5",