Running Gitbook on Gitlab Jan 27, 2019 | 1 minute

Here’s how to run a gitbook in gitlab pages:

  1. Create a repo in Gitlab
  2. Clone the template here
  3. Add the following file as .gitlab-ci.yml and push to gitlab:
# requiring the environment of NodeJS 6.12.x
image: node:6.12

# add 'node_modules' to cache for speeding up builds
    - node_modules/ # Node modules and dependencies

  - npm install gitbook-cli -g # install gitbook
  - gitbook fetch latest # fetch latest stable version
  - gitbook install # add any requested plugins in book.json

# the 'pages' job will deploy and build your site to the 'public' path
  stage: deploy
    - gitbook build . public # build to public path
      - public
    - master # this job will affect only the 'master' branch

Once you push this, you’ll have a gitbook running.

© 2021 Floyd Hightower

Powered by Hugo with theme Dream.

About me

Welcome! I’m Floyd Hightower.

I am a programmer who is passionate about making the world a better place using technology.


Life Principles

Here are some of the principles I try apply to every area of my life:

  • Let your ideas see the light of day
  • Always be willing to accept feedback and criticism (even when it is poorly delivered)
  • Rome ne s’est pas faite en un jour (Rome wasn’t built in a day)
  • Don’t be too proud to follow a good example
  • Loose ends always unravel
  • Unanswered questions never go away
  • The Tisroc won’t live forever whether you want him to or not
  • Talk less; listen more
  • Use more semi-colons
  • Use oxford commas
  • Learn how to politely say “No”
  • Don’t let the possibility of failure scare you away from starting something
  • To do something, you have to do something
  • A whiteboard is worth a thousand laptops
  • Ideas have consequences