Documentation project » History » Version 42
Ward Vandewege, 03/02/2022 06:17 PM
Add reference to doc organizing principle https://diataxis.fr/
1 | 32 | Ward Vandewege | h1. Documentation project |
---|---|---|---|
2 | 1 | Anonymous | |
3 | 34 | Ward Vandewege | The documentation project is a part of the overall Arvados project. The output from this project forms the official documentation at "http://doc.arvados.org":http://doc.arvados.org. It is also included in the Arvados source tree. |
4 | 1 | Anonymous | |
5 | 42 | Ward Vandewege | As a general organizing principle, we follow https://diataxis.fr/ |
6 | |||
7 | 1 | Anonymous | h2. Guides |
8 | |||
9 | 29 | Nancy Ouyang | There are six guides that are being developed to support the use of Arvados: |
10 | 1 | Anonymous | |
11 | 29 | Nancy Ouyang | * "Getting Started":http://doc.arvados.org/start/ - Quickstart and overview of Arvados (what it is, who it's for, and key features). |
12 | 1 | Anonymous | |
13 | * "User Guide":http://doc.arvados.org/user/ - Introductory and tutorial materials for building analysis or web applications using Arvados. |
||
14 | 30 | Nancy Ouyang | |
15 | * "SDK Reference":http://doc.arvados.org/sdk/ - Details about the accessing Arvados from various programming languages. |
||
16 | 29 | Nancy Ouyang | |
17 | 1 | Anonymous | * "API Reference":http://doc.arvados.org/api/ - REST API methods and resources, the MapReduce job execution environment, permission model, etc. |
18 | |||
19 | 14 | Anonymous | * "Admin Guide":http://doc.arvados.org/admin/ - Instructions to system administrators for maintaining an Arvados installation. |
20 | 12 | Anonymous | |
21 | 29 | Nancy Ouyang | * "Install Guide":http://doc.arvados.org/install/ - How to install and configure Arvados on the cloud management platform of your choice. |
22 | 15 | Anonymous | |
23 | 29 | Nancy Ouyang | A web version of the documentation is available at http://doc.arvados.org. |
24 | 6 | Tom Clegg | |
25 | 1 | Anonymous | h2. Documentation Project |
26 | |||
27 | 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. |
28 | 1 | Anonymous | |
29 | 7 | Tom Clegg | h2. Contributing |
30 | 1 | Anonymous | |
31 | 29 | Nancy Ouyang | Bugs in the documentation can be submitted as "issues":/projects/arvados/issues. |
32 | 6 | Tom Clegg | |
33 | 29 | Nancy Ouyang | If you'd like to fix documentation bugs yourself, or to otherwise contribute to the documentation, clone the Arvados source repository, edit, and send pull requests just as you would when contributing program source code. |
34 | 6 | Tom Clegg | |
35 | We do not yet maintain a separate documentation mailing list, so we encourage documentation contributors to join the main developer mailing list. |
||
36 | |||
37 | References for contributors: |
||
38 | |||
39 | * "Markdown syntax":http://daringfireball.net/projects/markdown/syntax |
||
40 | 25 | Peter Amstutz | * "Textile syntax":http://redcloth.org/textile |
41 | * "Zenweb":http://www.zenspider.com/projects/zenweb.html |
||
42 | 6 | Tom Clegg | * "Liquid for designers":https://github.com/shopify/liquid/wiki/liquid-for-designers (template engine) |
43 | 11 | Tom Clegg | |
44 | Contributor quick-start: |
||
45 | 1 | Anonymous | |
46 | 40 | Tom Clegg | # Fork the arvados repository on github |
47 | # Clone the repository and set up the preprocessor |
||
48 | #* <pre><code>git clone git://github.com/<b>your_github_username</b>/arvados.git |
||
49 | 1 | Anonymous | cd arvados/doc |
50 | bundle install |
||
51 | 40 | Tom Clegg | </code></pre> |
52 | 41 | Ward Vandewege | # Generate html (it will appear in @.site/@) and view your local copy |
53 | #* <pre><code>rake && sensible-browser .site/index.html |
||
54 | 40 | Tom Clegg | </code></pre> |
55 | 28 | Nancy Ouyang | |
56 | 27 | Tom Clegg | To generate Python SDK docs, install @epydoc@ and @arvados-python-client@ before running @rake@ in @arvados/doc@: |
57 | 1 | Anonymous | |
58 | 27 | Tom Clegg | <pre><code>sudo apt-get install python-pip python-virtualenv |
59 | virtualenv /tmp/z |
||
60 | 40 | Tom Clegg | source /tmp/z/bin/activate |
61 | 1 | Anonymous | pip install epydoc arvados-python-client |
62 | rake |
||
63 | </code></pre> |
||
64 | |||
65 | 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 documentation purposes, https://arvados.org/issues/4926 is a safe bet. Note the issue number: *4926*. |
||
66 | |||
67 | Then, |
||
68 | 40 | Tom Clegg | # Fork the arvados repository on github |
69 | # Make a feature branch |
||
70 | # <pre><code>git checkout -b 4926-some-description</code></pre> |
||
71 | # Make your changes to the documentation |
||
72 | # Preview your changes with @git status@, @git diff@, etc. |
||
73 | # Add and commit the files you want to include in the update. For example: |
||
74 | # <pre><code>git add _config.yml _includes/_navbar_top.liquid _layouts/default.html.liquid index.html.liquid |
||
75 | 35 | Nancy Ouyang | git commit -m "4926: Added foobar to barfoo" |
76 | </code></pre> |
||
77 | 40 | Tom Clegg | # Push the branch to your github account |
78 | <pre><code>git push git@github.com:<b>your_github_username</b>/arvados.git 4926-getting-started:4926-getting-started |
||
79 | </code></pre> |
||
80 | # Go to https://github.com and create a pull request |
||
81 | 35 | Nancy Ouyang | |
82 | 40 | Tom Clegg | We like to see commit messages that start with an issue number (if applicable) and describe what the new code _does_, like this: |
83 | * "1234: Explain it's important to install foo before baz." |
||
84 | * "1234: Update foo example to use new bar feature." |
||
85 | 1 | Anonymous | |
86 | 40 | Tom Clegg | Less-good messages: |
87 | * "Improve docs." |
||
88 | * "Incorporate review feedback." |
||
89 | 37 | Nancy Ouyang | |
90 | 38 | Nancy Ouyang | h3. Code Review |
91 | 39 | Nancy Ouyang | |
92 | 40 | Tom Clegg | Next, get it reviewed and merged! |
93 | 37 | Nancy Ouyang | |
94 | 40 | Tom Clegg | We should get notified when new PRs arrive, but if you'd like to move things along faster we'll be happy to hear from you one or more of the following ways: |
95 | * visit our IRC channel |
||
96 | * send email to support@curoverse.com |
||
97 | * Visit our "redmine issue tracker":http://arvados.org and add a review subtask under the appropriate issue, if applicable -- just enter the subject "review 4926-some-description" and we'll know what it means. |
||
98 | 35 | Nancy Ouyang | |
99 | 28 | Nancy Ouyang | h3. Important files and folders |
100 | |||
101 | These are located in the arvados/doc directory. |
||
102 | |||
103 | 29 | Nancy Ouyang | * */css/* |
104 | By convention, we store all the CSS files here. |
||
105 | * */js/* |
||
106 | By convention, we store all the Javascript files here. |
||
107 | * */_includes/_navbar_top.liquid* |
||
108 | These describe the top navigation bar, if you are adding or renaming sections |
||
109 | * */_config.yml* |
||
110 | This file describes the order of pages in the left navigation bar. |
||
111 | * */_layouts/default.html.liquid* |
||
112 | If you wish to include new CSS or Javascript files (for instance, in /css or /js) across the whole site, do so here. |