@@ -10,16 +10,16 @@ next_url: how-to/translate-documentation
10
10
The Rubinius documentation is integrated with the website and blog. It uses
11
11
Jekyll just like the other components.
12
12
13
- To get started, ensure you have the ` kramdown ` and ` jekyll ` gems installed.
13
+ To get started, use ` bundler ` inside your local repository clone:
14
14
15
- rbx gem install jekyll kramdown
15
+ rbx -S bundle install
16
16
17
- The documentation source is under the ` web/ doc` directory. There are
17
+ The documentation source is under the ` doc ` directory. There are
18
18
subdirectories for each language to which the documentation has been
19
19
translated (eg ` en ` , ` es ` , etc.).
20
20
21
21
There is a Table of Contents for each translation (e.g.
22
- ` /web/ doc/en/index.markdown` ). The rest of the documentation consists of
22
+ ` doc/en/index.markdown ` ). The rest of the documentation consists of
23
23
single files that have YAML attributes to specify how the documents are
24
24
connected. Essentially, the documentation can be viewed as a doubly-linked
25
25
list of documents with each document pointing to the previous and next
@@ -49,38 +49,26 @@ title and link for the next document. These are used to enhance browsing the
49
49
documentation and limiting the amount of work necessary to re-order parts of
50
50
the documentation.
51
51
52
- Both the source for the documentation and the files generated by Jekyll are
53
- committed to the Rubinius repository. When people clone the source repository,
54
- they can run ` rake docs ` to view the documentation before they have built
55
- Rubinius or if having problems building Rubinius.
56
-
57
-
58
52
### Editing Existing Documentation
59
53
60
54
An initial outline for the documentation has been created. There are many
61
55
topics that merely need to have documentation written for them.
62
56
63
57
To add documentation for an existing topic or to fix existing documentation:
64
58
65
- 1 . Open the file for the topic under ` web/ doc/LANG` .
59
+ 1 . Open the file for the topic under ` doc/LANG ` .
66
60
1 . Add or improve the documentation.
67
61
1 . To view your updates while you are working on them, run
68
- ` rbx -S jekyll serve --watch ` in the ` web/ ` directory.
62
+ ` rbx -S jekyll serve --watch ` in the root directory.
69
63
1 . Once finished adding or editing documentation, commit your changes to the
70
64
source files.
71
- 1 . Run ` rbx -S jekyll build ` in the ` web/ ` directory to force update of all
72
- generated files in ` web/_site ` .
73
- 1 . Commit the generated files. If making a small change, the generated files
74
- can be committed with the documentation source files. If making many
75
- changes, commit the generated files separately to make reviewing changes
76
- more simple.
77
65
78
66
79
67
### Adding New Documentation
80
68
81
69
To add documentation for which no existing topic exists:
82
70
83
- 1 . Create a new file with the .markdown extension under ` web/ doc/LANG` .
71
+ 1 . Create a new file with the .markdown extension under ` doc/LANG ` .
84
72
1 . Set up the attributes to link the new file into the existing files. This
85
73
will require editing the _ previous_ and _ next_ attributes of the existing
86
74
files to insert the new file, as well as adding an entry to
@@ -90,9 +78,3 @@ To add documentation for which no existing topic exists:
90
78
1 . Edit the new file using Markdown syntax.
91
79
1 . Once finished adding or editing documentation, commit your changes to the
92
80
source files.
93
- 1 . Run ` rbx -S jekyll build ` in the ` web/ ` directory to force update of all
94
- generated files in ` web/_site ` .
95
- 1 . Commit the generated files. If making a small change, the generated files
96
- can be committed with the documentation source files. If making many
97
- changes, commit the generated files separately to make reviewing changes
98
- more simple.
0 commit comments