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$ sudo apt-get install build-essential libcurl4-openssl-dev libgnutls28-dev libssl-dev
17 arvados/doc$ bundle install
20 To generate the Python SDK documentation, these additional dependencies are needed:
23 arvados/doc$ sudo apt-get install python3-pip
24 arvados/doc$ pip3 install arvados-python-client
25 arvados/doc$ pip3 install pdoc3
28 h2. Generate HTML pages
31 arvados/doc$ bundle exec rake
34 Alternately, to make the documentation browsable on the local filesystem:
37 arvados/doc$ bundle exec rake generate baseurl=$PWD/.site
42 If you have "Linkchecker":http://wummel.github.io/linkchecker/ installed on
43 your system, you can run it against the documentation:
46 arvados/doc$ bundle exec rake linkchecker baseurl=file://$PWD/.site
49 Please note that this will regenerate your $PWD/.site directory.
51 h2. Preview HTML pages
54 arvados/doc$ bundle exec rake run
55 [2014-03-10 09:03:41] INFO WEBrick 1.3.1
56 [2014-03-10 09:03:41] INFO ruby 2.1.1 (2014-02-24) [x86_64-linux]
57 [2014-03-10 09:03:41] INFO WEBrick::HTTPServer#start: pid=8926 port=8000
60 Preview the rendered pages at "http://localhost:8000":http://localhost:8000.
62 h2. Publish HTML pages inside Workbench
64 (or some other web site)
66 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@:
69 arvados/doc$ bundle exec rake generate baseurl=/doc arvados_api_host=xyzzy.arvadosapi.com
72 Make the docs appear at {workbench_host}/doc by creating a symbolic link in Workbench's @public@ directory, pointing to the generated HTML tree.
75 arvados/doc$ ln -sn ../../../doc/.site ../apps/workbench/public/doc
78 h2. Delete generated files
81 arvados/doc$ bundle exec rake realclean