Git Book creates a content type that forms a new kind of book node which pulls its content from a git repository. It utilizes the Git.php library to make this easy to do. Git book is currently made up of two modules:

  • Git git_book - Provides the Feature / Content type / some simple helper functions needed to manage the git_book type.
  • git_book_markdown - Provides configuration for a markdown editor via wysiwyg module as well as an input format for processing markdown correctly.
  • git_book_gb - Provides support for repos that utilize the GitBook.com service. This allows you to manage outlines of content in github and suck it into a drupal site to do whatever you want with.
  • git_book_rtd - Provides support for repos that utilize the Read the Docs style YAML file + documentation structure. This allows you to manage outlines of content in github and suck it into a drupal site to do whatever you want with.

Currently when the git_book type is created, it will pull the content in and when it's deleted it will delete the repo from your server.

Requirements (server level):

  • YAML support (yum install php-pecl-yaml or equivalent)
  • git
  • Private files directory

Future plans are for synchronization as well as ability to push changes back to git repo (though this assumes the server is authorized to do so).

Drupal planet article
Video showing this working in ELMSLN

Supporting organizations: 
Developed, Implemented

Project information

  • caution Seeking new maintainer
    The current maintainers are looking for new people to take ownership.
  • caution No further development
    No longer developed by its maintainers.
  • Module categories: Administration Tools, Content Editing Experience
  • Created by btopro on , updated
  • shieldStable releases for this project are covered by the security advisory policy.
    Look for the shield icon below.

Releases