pivotal-cf/docs-layout-repo

Name: docs-layout-repo

Owner: Pivotal Cloud Foundry

Description: null

Created: 2015-08-18 21:48:45.0

Updated: 2018-05-15 16:27:51.0

Pushed: 2018-05-15 16:27:50.0

Homepage: null

Size: 8543

Language: HTML

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

docs-layout-repo

This is the centralized layout repository for Pivotal documentation, for use with Bookbinder.

This repository is intended to contain layouts, formatting, and styles used across all (or most) documentation sets.

Note: Content specific to a book should be stored in the book, and not in this repo. For example, all subnav templates for the documentation set published by the docs-book-pcfservices book should be stored in the docs-book-pcfservices repository.

To include this centralized layout repository in your book, add the following line to your book's config.yml:

ut_repo: pivotal-cf/docs-layout-repo

Note: You must clone this repo in order to bind locally.

Upon running bind or watch, all files from the layout repo will be used in the bound book.

Overview

All book-specific overrides should be done in the following files in your book's master_middleman/source directory, according to the type of changes you would like to make.

Upon running bind or watch, all files from the layout repo will be used in the bound book.

Styles

Overrides are held in two files:

Javascript

Overrides are held in javascripts/book.js.

If any additional libraries are to be added to the book (e.g. my-javascript-file.js), include them in the javascripts folder and then require them in this file, as follows:

require 'my-javascript-file'
Layout

The Pivotal and Cloud Foundry books all use the layout repo's layout layouts/layout.erb. They define partials and template variables to change the layout contents where needed.

The following items are defined by books, and used by layouts/layout.erb:

Template variables: Partials:

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.