This repo contains the static content of the openshift.github.io site. This site is the current "home base" for OpenShift Origin, containing information on how to contribute, and serving the Origin documentation.
The documentation source lives in the origin-server repository. The update_docs.sh utility in this repo is used to trigger the rendering of those documents and then to collect them under the documentation and documentation-latest directories in this repo. To perform this build process, do the following:
-
In a working directory, clone these three repos:
-
In the
origin-serverrepo directory, you will need to create a tracking branch for the most recent Origin release:git checkout --track <upstream|origin>/<origin-release-branch>upstream or origin depends entirely upon how you initially set up the clone.
origin-release-branch is currentlyopenshift-origin-release-3NOTE: When Origin moves to the next release, you will need to modify the
packagetask in the documentation Rakefile to use the new release branch name. -
In the
openshift.github.comdirectiory, create a working branch for your updates:git checkout -b doc_updates -
Next, make sure you have the necessary Ruby gems. In the origin-server/documentation directory, run:
bundle installNOTE: You must be using Ruby 1.9.3 or later to build the docs
-
Finally, you can run the docs update utility.
cdto the openshift.github.com repo directory./update_docs.sh
You may see warnings from AsciiDoctor as the docs are generated; this is normal.
-
Once the process is complete, a
git statusshould reveal that the files under documentation and documentation-latest have all been updated. At a minumum, you will see a new render time date stamp in each file. Look for any new html files andgit addthem to include them in your commit. Once all of the modified files have been added to the commit, commit and push the working branch to github. -
Set up a pull request on GitHub from your working repo to the
openshift.github.commaster branch. Once this pull request is reviewed and merged, the new docs will appear on the site.