Skip to content

Instantly share code, notes, and snippets.

@timani
Last active July 9, 2016 18:52
Show Gist options
  • Save timani/60e62da535a312e526a9026a5002780f to your computer and use it in GitHub Desktop.
Save timani/60e62da535a312e526a9026a5002780f to your computer and use it in GitHub Desktop.
Bookbinder basic workflow - getting started
$ bookbinder
Commands:
bookbinder --help # Print this message
bookbinder --version # Print the version of bookbinder
bookbinder bind <local|remote> [options] # Bind the sections specified in config.yml from <local> or <remote> into the final_app directory
bookbinder generate <book_name> # Generate a skeleton book that can be bound with "bookbinder bind"
bookbinder imprint <local|remote> [options] # Generate a PDF for a given book
bookbinder punch <git tag> # Apply the specified <git tag> to your book, sections, and layout repo
bookbinder update_local_doc_repos # Run `git pull` on all sections that exist at the same directory level as your book directory
bookbinder watch [repo1 [repo2]] # Bind and serve a local book, watching for changes
tmunyaradzi:final_app tmunyaradzi$ cd ..
tmunyaradzi:pcf-onboarding tmunyaradzi$ ls -la
total 32
drwxr-xr-x 10 tmunyaradzi staff 340 Jul 9 10:20 .
drwxr-xr-x 8 tmunyaradzi staff 272 Jul 4 22:29 ..
drwxr-xr-x 3 tmunyaradzi staff 102 Jun 29 21:28 .bundle
-rw-r--r-- 1 tmunyaradzi staff 49 Jun 29 21:28 Gemfile
-rw-r--r-- 1 tmunyaradzi staff 4789 Jun 29 21:28 Gemfile.lock
drwxr-xr-x 22 tmunyaradzi staff 748 Jun 29 21:28 bin
-rw-r--r-- 1 tmunyaradzi staff 217 Jul 4 22:30 config.yml
drwxr-xr-x 11 tmunyaradzi staff 374 Jul 9 10:20 final_app
drwxr-xr-x 4 tmunyaradzi staff 136 Jun 29 21:28 master_middleman
drwxr-xr-x 4 tmunyaradzi staff 136 Jul 9 10:20 output
tmunyaradzi:pcf-onboarding tmunyaradzi$ bookbinder update_local_doc_repos
Updating /Users/tmunyaradzi/Pivotal/GSS/pcf-book-onboarding/cf-fundamentals: updated
tmunyaradzi:pcf-onboarding tmunyaradzi$ bookbinder watch
copying /Users/tmunyaradzi/Pivotal/GSS/pcf-book-onboarding/docs-layout-repo
Gathering cf-fundamentals
copying /Users/tmunyaradzi/Pivotal/GSS/pcf-book-onboarding/cf-fundamentals
Running middleman...
== The Middleman is loading
== LiveReload accepting connections from ws://192.168.2.5:35729
== View your site at "http://localhost:4567", "http://127.0.0.1:4567"
== Inspect your site configuration at "http://localhost:4567/__middleman", "http://127.0.0.1:4567/__middleman"
== LiveReloading path: /Users/tmunyaradzi/Pivotal/GSS/pcf-book-onboarding/pcf-onboarding/output/master_middleman/source/cf-fundamentals
== LiveReloading path: /cf-fundamentals/cf-101/
== LiveReloading path: /cf-fundamentals/cf-101/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment