Hyperbook Documentation

Deploy on GitLab Pages

Remember to add a basePath to your configuration, when deploying to GitLab pages.

image: node:latest
 
pages:
  stage: deploy
  script:
    - npx hyperbook build
    - mkdir .public
    - cp -r ./.hyperbook/out/* .public
    - rm -rf public
    - mv .public public
  artifacts:
    paths:
      - public
  rules:
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

Example Repository: https://gitlab.com/mikebarkmin/hyperbook-gitlab-pages

GitLab Pages
✎ GitHub© Copyright 2024 by OpenPatch