1 h1. Arvados documentation
3 This is the source code for "doc.arvados.org":http://doc.arvados.org.
5 Here's how to build the HTML pages locally so you can preview your updates before you commit and push.
7 Additional information is available on the "'Documentation' page on the Arvados wiki":https://arvados.org/projects/arvados/wiki/Documentation.
9 h2. 0. Install dependencies
12 arvados/doc$ bundle install
15 h2. 1. Generate HTML pages
21 Alternately, to make the documentation browsable on the local filesystem:
24 arvados/doc$ rake generate baseurl=$PWD/.site
27 h2. 2. Preview HTML pages
31 [2014-03-10 09:03:41] INFO WEBrick 1.3.1
32 [2014-03-10 09:03:41] INFO ruby 2.1.1 (2014-02-24) [x86_64-linux]
33 [2014-03-10 09:03:41] INFO WEBrick::HTTPServer#start: pid=8926 port=8000
36 Preview the rendered pages at "http://localhost:8000":http://localhost:8000.
38 h2. 3. Publish HTML pages inside Workbench
40 (or some other web site)
42 You can set @baseurl@ (the URL prefix for all internal links), @arvados_api_host@ and @arvados_workbench_host@ without changing @_config.yml@:
45 arvados/doc$ rake generate baseurl=/doc arvados_api_host=xyzzy.arvadosapi.com
48 Make the docs appear at {workbench_host}/doc by creating a symbolic link in Workbench's @public@ directory, pointing to the generated HTML tree.
51 arvados/doc$ ln -sn ../../../doc/.site ../apps/workbench/public/doc
54 h2. 4. Delete generated files
57 arvados/doc$ rake realclean