1 ###. Copyright (C) The Arvados Authors. All rights reserved.
3 .... SPDX-License-Identifier: CC-BY-SA-3.0
5 h1. Arvados documentation
7 This is the source code for "doc.arvados.org":http://doc.arvados.org.
9 Here's how to build the HTML pages locally so you can preview your updates before you commit and push.
11 Additional information is available on the "'Documentation' page on the Arvados wiki":https://dev.arvados.org/projects/arvados/wiki/Documentation.
13 h2. Install dependencies
16 arvados/doc$ bundle install
17 arvados/doc$ pip install epydoc
20 h2. Generate HTML pages
26 Alternately, to make the documentation browsable on the local filesystem:
29 arvados/doc$ rake generate baseurl=$PWD/.site
34 If you have "Linkchecker":http://wummel.github.io/linkchecker/ installed on
35 your system, you can run it against the documentation:
38 arvados/doc$ rake linkchecker baseurl=file://$PWD/.site
41 Please note that this will regenerate your $PWD/.site directory.
43 h2. Preview HTML pages
47 [2014-03-10 09:03:41] INFO WEBrick 1.3.1
48 [2014-03-10 09:03:41] INFO ruby 2.1.1 (2014-02-24) [x86_64-linux]
49 [2014-03-10 09:03:41] INFO WEBrick::HTTPServer#start: pid=8926 port=8000
52 Preview the rendered pages at "http://localhost:8000":http://localhost:8000.
54 h2. Publish HTML pages inside Workbench
56 (or some other web site)
58 You can set @baseurl@ (the URL prefix for all internal links), @arvados_cluster_uuid@, @arvados_api_host@ and @arvados_workbench_host@ without changing @_config.yml@:
61 arvados/doc$ rake generate baseurl=/doc arvados_api_host=xyzzy.arvadosapi.com
64 Make the docs appear at {workbench_host}/doc by creating a symbolic link in Workbench's @public@ directory, pointing to the generated HTML tree.
67 arvados/doc$ ln -sn ../../../doc/.site ../apps/workbench/public/doc
70 h2. Delete generated files
73 arvados/doc$ rake realclean