Public | Automated Build

Last pushed: 20 days ago
Short Description
Build gitbook image with Ansible.
Full Description

Ansible Role: GitBook

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

Current Version:

  • node: 5.12.0
  • npm: 3.10.3
  • gitbook-cli: 2.3.0
  • gitbook: 3.2.2

Requirements

None.

Role Variables

For install some gitbook plugins.

gitbook_plugins:
  - atoc
  - disqus
  - ga
  - github

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

  • chusiang/gitbook:alpine3.4 (lastest)
  • chusiang/gitbook:ubuntu14.04

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-2017 under the MIT license.

Docker Pull Command
Owner
chusiang
Source Repository

Comments (0)