forked from apache/geode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GEODE-1952 Move docs build README; edit build instructions
- Loading branch information
Joey McAllister
authored and
Karen Miller
committed
Oct 14, 2016
1 parent
d573de2
commit a0de4c9
Showing
3 changed files
with
63 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,60 @@ | ||
For information about writing, editing, building, and publishing the Apache Geode documentation, please view the `README.md` and `CONTRIBUTING.md` files in the `geode-docs` directory. | ||
# Apache Geode End-User Documentation | ||
|
||
Apache Geode provides the full source for end-user documentation in markdown format (see `../geode-docs/CONTRIBUTE.md`). The latest check-ins to `incubator-geode/geode-docs` are regularly built and published to http://geode.incubator.apache.org/docs/. Users can build the markdown into an HTML user guide using [Bookbinder](https://github.com/pivotal-cf/bookbinder) and the instructions below. | ||
|
||
Bookbinder is a Ruby gem that binds a unified documentation web application from markdown, html, and/or DITA source material. The source material for bookbinder must be stored either in local directories or in GitHub repositories. Bookbinder runs [middleman](http://middlemanapp.com/) to produce a Rackup app that can be deployed locally or as a Web application. | ||
|
||
This document contains instructions for building and viewing the Geode documentation locally. | ||
|
||
- [Prerequisites](#prerequisites) | ||
- [Bookbinder Usage](#bookbinder-usage) | ||
- [Building the Documentation](#building-the-documentation) | ||
|
||
## Prerequisites | ||
|
||
Bookbinder requires Ruby version 2.0.0-p195 or higher. | ||
|
||
Follow the instructions below to install Bookbinder: | ||
|
||
1. Add gem "bookbindery" to your Gemfile. | ||
2. Run `bundle install` to install the dependencies specified in your Gemfile. | ||
|
||
## Bookbinder Usage | ||
|
||
Bookbinder is meant to be used from within a project called a **book**. The book includes a configuration file that describes which documentation repositories to use as source materials. Bookbinder provides a set of scripts to aggregate those repositories and publish them to various locations. | ||
|
||
For Geode, a preconfigured **book** is provided in the directory `geode-book`, which gathers content from the directory `geode-docs`. You can use this configuration to build HTML for Geode on your local system. | ||
|
||
The installed `config.yml` file configures the Geode book for building locally. The file configures the local directory for the markdown source files. | ||
|
||
## Building the Documentation | ||
|
||
1. The GemFile in the `geode-book` directory already defines the `gem "bookbindery"` dependency. Make sure you are in the `geode-book` directory and enter: | ||
|
||
``` | ||
$ bundle install | ||
``` | ||
|
||
Note: You will not have to run `bundle install` on subsequent builds. | ||
|
||
2. To build the documentation locally using the installed `config.yml` file, enter: | ||
|
||
``` | ||
$ bundle exec bookbinder bind local | ||
``` | ||
Bookbinder converts the markdown source into HTML, which it puts in the `final_app` directory. | ||
|
||
3. Navigate to the `geode-book/final_app/` and enter: | ||
|
||
``` | ||
$ bundle install | ||
``` | ||
Note: You will not have to run `bundle install` on subsequent builds. | ||
|
||
4. To start the website locally, enter: | ||
|
||
``` | ||
$ rackup | ||
``` | ||
|
||
You can now view the local documentation at <http://localhost:9292>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.