.gitlab-ci.yml 428 Bytes
Newer Older
 JosephK's avatar
JosephK committed
1 2 3 4 5 6 7 8 9
image: hatsoftwares/gitbook:latest

pages:
  script:
    - gitbook init
    - gitbook install
    - git config user.name "Nobody"
    - git config user.email "nobody@framasoft.org"
    - gitbook build
 JosephK's avatar
JosephK committed
10
    - sed -i -e 's/<body>/<body><script src="lang.js" type="text\/javascript"><\/script>/g' _book/index.html
 JosephK's avatar
JosephK committed
11
    - /bin/bash ./redirections.sh
 JosephK's avatar
JosephK committed
12 13 14 15 16 17
    - mv _book/ public/
  artifacts:
    paths:
      - public
  only:
    - master