Project

General

Profile

Documentation project » History » Version 28

Nancy Ouyang, 01/21/2015 07:07 PM

1 1 Anonymous
h1. Documentation
2
3 5 Ward Vandewege
The documentation project is a part of the overall Arvados effort. 
4 1 Anonymous
5
h2. Guides
6
7 12 Anonymous
There are four guides that are being developed to support the use of Arvados: 
8 1 Anonymous
9 16 Anonymous
* "User Guide":http://doc.arvados.org/user/ - Introductory and tutorial materials for building analysis or web applications using Arvados. 
10 1 Anonymous
11 15 Anonymous
* "API Reference":http://doc.arvados.org/api/ - REST API methods and resources, the MapReduce job execution environment, permission model, etc.
12 1 Anonymous
13 14 Anonymous
* "Admin Guide":http://doc.arvados.org/admin/ - Instructions to system administrators for maintaining an Arvados installation.
14 12 Anonymous
15 1 Anonymous
* "Install Guide":http://doc.arvados.org/install/ - How to install and configure Arvados on the cloud management platform of your choice. 
16 15 Anonymous
17
A web version of the documentation is available at http://doc.arvados.org. 
18 1 Anonymous
19 6 Tom Clegg
h2. Documentation Project
20 1 Anonymous
21 7 Tom Clegg
The Arvados documentation is written in Markdown, Textile, and HTML. The source code is in the @doc@ directory in the Arvados source tree. We use Jekyll to render HTML pages.
22 1 Anonymous
23 7 Tom Clegg
h2. Contributing
24 1 Anonymous
25 7 Tom Clegg
Bugs in the documentation can be submitted as "issues":/projects/arvados/issues.
26 6 Tom Clegg
27 12 Anonymous
To contribute to the documentation, clone the Arvados source repository, edit, and send pull requests just as you would when contributing program source code.
28 6 Tom Clegg
29
We do not yet maintain a separate documentation mailing list, so we encourage documentation contributors to join the main developer mailing list.
30
31
References for contributors:
32
33
* "Markdown syntax":http://daringfireball.net/projects/markdown/syntax
34 25 Peter Amstutz
* "Textile syntax":http://redcloth.org/textile
35
* "Zenweb":http://www.zenspider.com/projects/zenweb.html
36 6 Tom Clegg
* "Liquid for designers":https://github.com/shopify/liquid/wiki/liquid-for-designers (template engine)
37 11 Tom Clegg
38
Contributor quick-start:
39 1 Anonymous
40 26 Peter Amstutz
<pre><code>git clone git://github.com/curoverse/arvados.git
41 11 Tom Clegg
cd arvados/doc
42 25 Peter Amstutz
bundle install
43
rake
44
# documentation will be generated in .site/
45 28 Nancy Ouyang
rake run
46 25 Peter Amstutz
</code></pre>
47 28 Nancy Ouyang
Note: The repository is only a few megabytes in size.
48
You can now preview it in your browser at http://localhost:8000 .
49 27 Tom Clegg
50 28 Nancy Ouyang
51 27 Tom Clegg
To generate Python SDK docs, install @epydoc@ and @arvados-python-client@ before running @rake@ in @arvados/doc@:
52
53
<pre><code>sudo apt-get install python-pip python-virtualenv
54
virtualenv /tmp/z
55
PATH=/tmp/z/bin:$PATH
56
pip install epydoc arvados-python-client
57
rake
58
</code></pre>
59 28 Nancy Ouyang
60
When you want to start making changes to the site, do so on a branch. If you'd like to follow our development process, create or pick an existing issue, for instance https://arvados.org/issues/4926. Note the issue number: *4926*.
61
62
Then,
63
64
<pre><code>git checkout -b 4926-some-description
65
# (make your changes to the documentation)
66
git status #shows you what files have chnaged
67
# Next, git add [the files you want to include in the update]
68
git add _config.yml _includes/_navbar_top.liquid _layouts/default.html.liquid index.html.liquid
69
git commit -m "4926: Added foobar to barfoo"
70
git remote add curoverse git@git.curoverse.com:arvados.git
71
git push curoverse 4926-getting-started:4926-getting-started
72
</code></pre>
73
74
The last command will throw “fatal” error if you’re pushing a new branch, e.g. “remote: fatal: Invalid revision range". Additionally, if you get a 403 error, email support@curoverse.com to request write permissions on the Arvados repository.
75
76
h3. Code Review
77
78
Next, get it reviewed! After logging in to Arvados Redmine (http://arvados.org), add it as a task under the appropriate story on the Arvados storyboard.
79
80
https://arvados.org/rb/taskboards/83
81
82
If you don't see a green + sign on the stories in the Story column, like below,
83
84
!greenbutton.png!
85
86
email support@curoverse.com to get permissions in the Redmine issue tracker to add tasks.
87
88
Call it something along the lines of "Review branch: 4926-some-description".
89
90
It should get reviewed shortly, if not email support@curoverse.com .
91
92
h3. Important files and folders
93
94
These are located in the arvados/doc directory.
95
96
* /css/
97
* /js/
98
* /_includes/_navbar_top.liquid &_navbar_left.liquid 
99
* /_config.yml (declare navigation / order of pages)
100
* /_layouts/default.html.liquid (declare CSS, javascript includes)