Skip to content

Commit b9de41a

Browse files
author
Zachary Scott
committed
* update links to bug tracker
* add link to talk and slides * add anchors to step-by-step-guide * footer link to about * 80 width columns * note about .patch extension on github * note about passing files to rdoc -C1 * update contact info and community resources
1 parent 571fd80 commit b9de41a

7 files changed

+119
-27
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
Ruby Documentation Project
22
===========================
33

4-
This site contains tips, tricks and other useful information on how to contribute to MRI documentation.
4+
This site contains tips, tricks and other useful information on how to
5+
contribute to MRI documentation.
56

67
It will have:
78

89
* Detailed, step by step contribution guide
9-
* Lists of areas in MRI that are poorly documented or undocumented and should be given high priority
10+
* Lists of areas in MRI that are poorly documented or undocumented and should
11+
be given high priority
1012
* Current coverage reports
1113

1214
In addition it will sport:
1315

14-
* Links to different resources (tutorials, screencasts, tools) around the topic of submitting documentation patches
16+
* Links to different resources (tutorials, screencasts, tools) around the topic
17+
of submitting documentation patches
1518
* Miscellaneous tips and tricks, such as rebasing a number of commits into one
1619
* Walkthroughs with example documentation patches
1720

18-
...
21+
...

_layouts/default.html

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,22 @@ <h3 class="first">Contribute</h3>
3030
<ul>
3131
<li><a href="index.html">Project Overview</a></li>
3232
<li><a href="support.html">Community Resources</a></li>
33-
<li><a href="step-by-step-guide.html">How to Document Ruby</a></li>
3433
<li><a href="undocumented-areas.html">List of Undocumented Areas</a></li>
34+
<li><a href="step-by-step-guide.html">How to Document Ruby</a>
35+
<ul>
36+
<li><a href="step-by-step-guide.html#SetUp">Getting Set Up</a></li>
37+
<li><a href="step-by-step-guide.html#Documenting">Documenting</a></li>
38+
<li><a href="step-by-step-guide.html#CreatePatch">Creating Your Own Patch</a></li>
39+
</ul>
40+
</li>
3541
</ul>
3642
<h3>Other Useful Resources</h3>
3743
<ul>
3844
<li>
39-
<a href="http://redmine.ruby-lang.org/projects/ruby/wiki/DocumenterHowTo">Style Guide</a>
45+
<a href="http://bugs.ruby-lang.org/projects/ruby/wiki/DocumenterHowTo">Style Guide</a>
46+
</li>
47+
<li>
48+
<a href="http://www.youtube.com/watch?v=4oBl1PmO4K0">Presentation</a> with <a href="https://speakerdeck.com/zzak/contributing-to-ruby">slides</a> on Contributing to Ruby</a>
4049
</li>
4150
<li><a href="http://blog.steveklabnik.com/2011/05/10/contributing-to-ruby-s-documentation.html">Article &amp; screencast on the documentation process</a></li>
4251
</ul>
@@ -45,7 +54,8 @@ <h3>Other Useful Resources</h3>
4554
</div>
4655
<div class="row" id="footer">
4756
<div class="wrapper">
48-
<p>Copyright &copy; 2011 Ruby Documentation Project.</p>
57+
<p>Copyright &copy; 2013 Ruby Documentation Project.</p>
58+
<p><a href="about.html">How This Project Came Into Being</a></p>
4959
</div>
5060
</div>
5161
</body>

_posts/2011-10-06-step-by-step-guide.markdown

Lines changed: 56 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ tags:
55
- help
66
---
77

8+
<a name="SetUp"></a>
89
## Getting Set Up
910

1011
Fork documenting-ruby's fork of Ruby [on github](https://github.com/documenting-ruby/ruby).
@@ -21,24 +22,44 @@ git fetch upstream
2122
git merge upstream/trunk
2223
{% endhighlight %}
2324

24-
Choose some code to document. You can use our [suggestions for code to document](undocumented-areas.html) or follow these instructions to generate your own list of undocumented code. Check documenting-ruby's [fork of Ruby issues](https://github.com/documenting-ruby/ruby/issues) for a list of documentation other people are working on.
25+
Choose some code to document. You can use our [suggestions for code to
26+
document](undocumented-areas.html) or follow these instructions to generate
27+
your own list of undocumented code. Check documenting-ruby's [fork of Ruby
28+
issues](https://github.com/documenting-ruby/ruby/issues) for a list of
29+
documentation other people are working on.
2530

2631
Get a list of undocumented code (you must have rdoc >= 3.3 for this to work):
2732
{% highlight bash %}
2833
rdoc -C1 > documentation_coverage.txt
2934
{% endhighlight %}
3035

31-
Search for "is not documented" in "documentation_coverage.txt". Find something that interests you, and document it. You can see how much of Ruby is documented by looking at the stats at the bottom of the file.
36+
You can also pass a list of files to check the documentation coverage, if you
37+
already have something in mind:
38+
{% highlight bash %}
39+
rdoc -C1 lib/drb* > documentation_coverage.txt
40+
{% endhighlight %}
41+
42+
Search for "is not documented" in "documentation_coverage.txt". Find something
43+
that interests you, and document it. You can see how much of Ruby is documented
44+
by looking at the stats at the bottom of the file.
3245

46+
<a name="Documenting"></a>
47+
<a class="top" href="#">top</a>
3348
## Documenting
3449

35-
To help others know what you're documenting, [open an issue](https://github.com/documenting-ruby/ruby/issues/new) on documenting-ruby's fork of Ruby.
50+
To help others know what you're documenting, [open an
51+
issue](https://github.com/documenting-ruby/ruby/issues/new) on
52+
documenting-ruby's fork of Ruby.
3653

3754
Write your new documentation.
3855

39-
- For writing top-level docs in C files, look for `Document-class` or `rb_define_class` (may be towards the bottom of the file.) For writing method docs, look for `rb_define_method`, and then look for the function it uses.
40-
- To emit `<code>foo.bar</code>`, you can use `+foo.bar+`. It doesn't always work on operators, so use `<code>==</code>`, not `+==+`.
41-
- Use `#foo` when writing about the foo method - it'll make a link to foo's documentation. `Foo.new(42)` will create a link to the constructor's docs.
56+
- For writing top-level docs in C files, look for `Document-class` or
57+
`rb_define_class` (may be towards the bottom of the file.) For writing method
58+
docs, look for `rb_define_method`, and then look for the function it uses.
59+
- To emit `<code>foo.bar</code>`, you can use `+foo.bar+`. It doesn't always
60+
work on operators, so use `<code>==</code>`, not `+==+`.
61+
- Use `#foo` when writing about the foo method - it'll make a link to foo's
62+
documentation. `Foo.new(42)` will create a link to the constructor's docs.
4263

4364
Generate your new HTML documentation:
4465
{% highlight bash %}
@@ -52,7 +73,9 @@ rdoc -o tmpdoc lib/drb*
5273

5374
Preview your new documentation in `tmpdoc/index.html`.
5475

55-
> Tip: You can use the `adsf` gem to serve your files locally, similar to `gem server`. Install the gem and `cd tmpdoc && adsf`. It defaults to port&nbsp;3000.
76+
> Tip: You can use the `adsf` gem to serve your files locally, similar to `gem
77+
> server`. Install the gem and `cd tmpdoc && adsf`. It defaults to
78+
> port&nbsp;3000.
5679
5780
Once it looks good delete your extra files:
5881
{% highlight bash %}
@@ -69,19 +92,41 @@ Commit your documentation change:
6992
git commit -m "adding documentation for WHAT_YOU_CHANGED"
7093
{% endhighlight %}
7194

72-
Submit a pull request to documenting-ruby's fork if you want a quality review, or need help creating a patch to submit to Ruby Core. Or if you have something that's ready to go, you can submit the patch yourself (see instructions below). You should **not** submit a pull request to ruby/ruby, they don't use github's mechanism for this.
95+
Submit a pull request to documenting-ruby's fork if you want a quality review,
96+
or need help creating a patch to submit to Ruby Core. Or if you have something
97+
that's ready to go, you can submit the patch yourself (see instructions below).
7398

99+
<a name="CreatePatch"></a>
100+
<a class="top" href="#">top</a>
74101
## Instructions for creating your own patch
75102

76103
Create a patch to submit to ruby-core:
77104
{% highlight bash %}
78105
git format-patch HEAD~1
79106
{% endhighlight %}
80107

81-
[Open a new ticket](http://redmine.ruby-lang.org/projects/ruby-19/issues/new) on RedMine and submit your patch (will be called something like "0001-\*.patch" in the root directory of the project). You'll need to [sign up](http://redmine.ruby-lang.org/account/register) if you haven't before. Assigning Eric Hodel to the ticket should help make sure your patch is pulled in a timely manner.
108+
If you're having trouble generating a patch, but you have committed your
109+
changes to github, simply append `.patch` to the end of your commit. For
110+
example, if you take the [following
111+
commit](https://github.com/ruby/ruby/commit/071a678a156dde974d8e470b659c89cb02b07b3b)
112+
and [add `.patch` to the
113+
url](https://github.com/ruby/ruby/commit/071a678a156dde974d8e470b659c89cb02b07b3b.patch)
114+
you can save this page as a patch and upload it to the bug tracker.
115+
116+
[Open a new ticket](http://bugs.ruby-lang.org/projects/ruby-trunk/issues/new)
117+
on RedMine and submit your patch (will be called something like "0001-\*.patch"
118+
in the root directory of the project). You'll need to [sign
119+
up](http://bugs.ruby-lang.org/account/register) if you haven't before.
120+
Assigning drbrain or zzak to the ticket should help make sure your patch is
121+
pulled in a timely manner.
82122

83123
## Additional Information
84124

85-
[Here is](https://github.com/ruby/ruby/commit/071a678a156dde974d8e470b659c89cb02b07b3b) an example of a documentation patch that Eric Hodel added. You can reference this for style.
125+
[Here
126+
is](https://github.com/ruby/ruby/commit/071a678a156dde974d8e470b659c89cb02b07b3b)
127+
an example of a documentation patch that Eric Hodel added. You can reference
128+
this for style.
86129

87-
Thanks to [Steve Klabnik](http://steveklabnik.com/) for his [excellent post](http://blog.steveklabnik.com/2011/05/10/contributing-to-ruby-s-documentation.html) on which most of this information is based.
130+
Thanks to [Steve Klabnik](http://steveklabnik.com/) for his [excellent
131+
post](http://blog.steveklabnik.com/2011/05/10/contributing-to-ruby-s-documentation.html)
132+
on which most of this information is based.

_posts/2011-10-09-about.markdown

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,18 @@ tags:
77

88
# How This Project Came Into Being
99

10-
The Ruby Documentation Project grew out of a burst of documentation activity -
11-
[MRI Documentation Week](http://projects.mendicantuniversity.org/doc-week.html) - organized by Mendicant University with the specific intention of enhancing the existing MRI documentation.
10+
The Ruby Documentation Project grew out of a burst of documentation activity -
11+
[MRI Documentation Week](http://projects.mendicantuniversity.org/doc-week.html)
12+
- organized by Mendicant University with the specific intention of enhancing
13+
the existing MRI documentation.
1214

13-
In the short period of one week, a good deal of quality documentation was produced. Encouraged by the positive response to this event and seeing that there are still many areas of the documentation that need attention, Gregory Brown, Steve Klabnik and members of the [Mendicant University](http://university.rubymendicant.com) have decided to evolve this documentation drive into an ongoing endeavor.
15+
In the short period of one week, a good deal of quality documentation was
16+
produced. Encouraged by the positive response to this event and seeing that
17+
there are still many areas of the documentation that need attention, Gregory
18+
Brown, Steve Klabnik and members of the [Mendicant
19+
University](http://university.rubymendicant.com) have decided to evolve this
20+
documentation drive into an ongoing endeavor.
1421

15-
If you'd like to be a part of this effort, here on this website we've assembled various resources to help you navigate the process of creating and submitting a documentation patch for Ruby.
22+
If you'd like to be a part of this effort, here on this website we've assembled
23+
various resources to help you navigate the process of creating and submitting a
24+
documentation patch for Ruby.

_posts/2011-10-09-support.markdown

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,34 @@ tags:
77

88
### Mailing List
99

10-
If you have any questions about documentation for which you can't find the answer on this website, then please post them to the **documenting.ruby@librelist.org** mailing list. To sign up, send a first message to documenting.ruby@librelist.org with any subject. This step will trigger an email asking you to confirm your subscription request. To finalize your subscription simply reply to the confirmation email you just received.
10+
If you have any questions about documentation for which you can't find the
11+
answer on this website, then please post them to the
12+
**documenting.ruby@librelist.org** mailing list.
13+
14+
To sign up, send a first message to documenting.ruby@librelist.org with any
15+
subject. This step will trigger an email asking you to confirm your
16+
subscription request. To finalize your subscription simply reply to the
17+
confirmation email you just received.
1118

1219
### IRC Channel
1320

14-
We use the #ruby-core IRC channel on freenode for discussions around MRI documentation. The channel is not very active, but feel free to ping @drbrain (Eric Hodel), @seacreature (Gregory Brown) or @steveklabnik (Steve Klabnik) with any questions.
21+
We use the #ruby-core IRC channel on freenode for discussions around MRI
22+
documentation.
23+
24+
The channel is not very active, but feel free to ping any of the following
25+
individuals with any questions:
1526

27+
* <a href="http://twitter.com/drbrain">drbrain (Eric Hodel)</a>
28+
* <a href="http://twitter.com/_zzak">zzak (Zachary Scott)</a>
29+
* <a href="http://twitter.com/practicingruby">@practicingruby (Gregory Brown)</a>
30+
* or <a href="http://twitter.com/steveklabnik">steveklabnik (Steve Klabnik)</a>
1631

1732
### Our Ruby Fork
1833

19-
The first step for contributing is to create your own fork of documenting-ruby's [fork of ruby on github](https://github.com/documenting-ruby/ruby). The purpose of this setup is to allow for an internal review process of new documentation contributions. For more details on the exact contribution process, read [How to Document Ruby](/step-by-step-guide.html)
34+
The first step for contributing is to create your own fork of
35+
documenting-ruby's [fork of ruby on
36+
github](https://github.com/documenting-ruby/ruby). The purpose of this setup is
37+
to allow for an internal review process of new documentation contributions. For
38+
more details on the exact contribution process, read [How to Document
39+
Ruby](/step-by-step-guide.html)
2040

assets/default.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ ul.lineal li{
147147
padding:0;
148148
}
149149

150+
.top {
151+
float:right;
152+
font-size:80%;
153+
}
154+
150155
.extra{
151156
float:right;
152157
}

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<h2>Why Documentation?</h2>
99
<ul>
10-
<li>Only about 60% of Ruby is adequately documented</li>
10+
<li>Only about 75% of Ruby is adequately documented</li>
1111
<li>Existing documentation could use some polish in form of clearer descriptions and better examples</li>
1212
<li>Writing documentation is a gentle, but effective introduction to contributing to open source</li>
1313
<li>Great way to solidify your Ruby fundamentals</li>
@@ -24,7 +24,7 @@ <h2>What We Provide</h2>
2424
</ul>
2525

2626
<h2>How It Works (In a Nutshell)</h2>
27-
<p>Generally, Ruby documentation patches need to be submitted to the Redmine <a href="http://redmine.ruby-lang.org">Ruby Issue Tracking System</a>. We pave the way to ensure a successful submission by setting up an internal review process through Github. To take advantage of this workflow you need to:</p>
27+
<p>Generally, Ruby documentation patches need to be submitted to the Redmine <a href="http://bugs.ruby-lang.org">Ruby Issue Tracking System</a>. We pave the way to ensure a successful submission by setting up an internal review process through Github. To take advantage of this workflow you need to:</p>
2828

2929
<ol>
3030
<li>Create your own fork of <a href="https://github.com/documenting-ruby/ruby">this fork of ruby</a></li>

0 commit comments

Comments
 (0)