An Ansible role of Install gitbook in everyway.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
builds
defaults
files
meta
tasks
tests
.gitignore
.travis.yml
LICENSE
Makefile
README.md
Vagrantfile
requirements.yml
setup.yml

README.md

Ansible Role: GitBook

Build Status Ansible Galaxy Docker Hub

An Ansible role of Install gitbook for Ubuntu, Apline and macOS.

Current Version:

  • node: 6.10.3
  • npm: 3.10.10
  • gitbook-cli: 2.3.2
  • gitbook: 3.2.3

Requirements

None.

Role Variables

node_reversion: '6.10.3'

# If we want to use the specific version, we need setting the
# 'gitbook_switch_specific_version' variable to 'true'.
gitbook_switch_specific_version: 'false'
gitbook_specific_version: 2.6.7

gitbook_npm_packages:
  - gitbook-cli
  - svgexport

gitbook_plugins:
  - disqus
  - ga
  - github
  - page-toc-button

Dependencies

None.

Example Playbook

- hosts: all
  roles:
    - { role: chusiang.gitbook }

Docker Container

This repository contains Dockerized Ansible, published to the public Docker Hub via automated build mechanism.

Docker Hub: chusiang/gitbook

Images

Usage

$ docker run -it -v /src/gitbook:/tmp/gitbook chusiang/gitbook:ubuntu14.04 bash
root@5438276a451d:/tmp# cd gitbook && gitbook build .
info: 9 plugins are installed
info: 6 explicitly listed
info: loading plugin "highlight"... OK
info: loading plugin "search"... OK
info: loading plugin "lunr"... OK
info: loading plugin "sharing"... OK
info: loading plugin "fontsettings"... OK
info: loading plugin "theme-default"... OK
info: found 41 pages
info: found 57 asset files
info: >> generation finished with success in 8.5s !

License

Copyright (c) chusiang from 2016-2018 under the MIT license.