GitBook Deployment Process (GitHub Pages)
This repository publishes documentation from docs/ to GitHub Pages using a GitHub Actions workflow and GitBook-compatible structure.
Workflow File
.github/workflows/gitbook-pages.yml
GitBook/Honkit structure config:
docs/book.json(maps to lowercasereadme.mdandsummary.md)
Trigger
The workflow runs on:
- push to
main(including merged pull requests) - manual dispatch (
workflow_dispatch)
Deployment Steps
- Update docs in
docs/. - Commit changes and merge into
main. - Wait for
gitbook-pagesworkflow to finish. - Read published docs on GitHub Pages.
OpenPackage Publish in CI
OpenPackage publishing is documented in:
The OpenPackage workflow runs independently from docs deployment and publishes the package to the OpenPackage registry.
One-Time Repository Setup
In GitHub repository settings:
- Open
Settings -> Pages - Set source to
GitHub Actions - Open
Settings -> Environments -> github-pages - Under deployment branches/tags, allow branch
main(or configure no restriction)
If this is restricted to tags only, deployments from main will be rejected by environment protection.
Build Details
The workflow:
- checks out repository content including Git LFS assets
- runs
git lfs pullto ensure binary image objects are available in CI - enables Yarn via Corepack (
corepack enable) - prepares compatibility files (
README.md,SUMMARY.md) from lowercase docs filenames at CI runtime - builds docs from
docs/into repository-root_site/usingyarn dlx honkit build docs "$PWD/_site"withYARN_NODE_LINKER=node-modules - normalizes generated HTML image paths from
../images/toimages/for GitHub Pages root compatibility - copies shared images from
images/into_site/images/ - deploys
_site/to GitHub Pages
Published URL (project pages):
https://sevenofnine-ai.github.io/windows-pc-keyboard-layout-mac/