From f438c3331e976f8e8549b74b0af054129d962ec9 Mon Sep 17 00:00:00 2001 From: Todd Sedano Date: Tue, 23 Jan 2018 14:26:21 -0800 Subject: [PATCH] Adds mac installation directions - This includes how to install key library and gems on a mac. --- README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/README.md b/README.md index 313cd3c01..b66d6eed9 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,36 @@ Follow the instructions below to install Bookbinder: **Note**: Ensure that the version of the DITA-OT library that you install supports the DITA version in which your documents are written. + +### Installation on a mac + +1. Install ruby and needed dependencies +``` +gem install bundler + +brew install v8 +gem install therubyracer +gem install libv8 -v '3.16.14.7' -- --with-system-v8 +brew install ant +``` + +1. Install Dita-OT, version 1.7.5, full easy from http://www.dita-ot.org/download +``` +cat >> ~/.bash_profile << EOF +export PATH_TO_DITA_OT_LIBRARY="/Users/pivotal/workspace/DITA-OT1.7.5" +EOF +export PATH_TO_DITA_OT_LIBRARY="/Users/pivotal/workspace/DITA-OT1.7.5" +``` + +1. Build the book +``` +bundle exec bookbinder bind local + +cd final_app/ +bundle install +rackup +``` + ## Usage Bookbinder is meant to be used from within a project called a **book**.