From e1db75c6166fe323844ae3265d9d1dd1d7e3d9a0 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Sat, 7 Oct 2017 16:42:29 +0200 Subject: [PATCH 1/2] Update: Refer only to ruby/ruby - avoid referring people to this org's repository - try to keep the documentation published useful still --- _posts/2011-10-06-step-by-step-guide.markdown | 33 +++++++------------ 1 file changed, 12 insertions(+), 21 deletions(-) diff --git a/_posts/2011-10-06-step-by-step-guide.markdown b/_posts/2011-10-06-step-by-step-guide.markdown index fc69dfa..c63e49a 100644 --- a/_posts/2011-10-06-step-by-step-guide.markdown +++ b/_posts/2011-10-06-step-by-step-guide.markdown @@ -8,24 +8,24 @@ tags: ## Getting Set Up -Fork documenting-ruby's fork of Ruby [on github](https://github.com/documenting-ruby/ruby). +Fork the [ruby repository on GitHub](https://github.com/ruby/ruby). Clone your new repo: {% highlight bash %} -git clone git@github.com:YOUR_NAME/ruby.git +git clone git@github.com:ruby/ruby.git {% endhighlight %} Add the upstream remote: {% highlight bash %} -git remote add upstream https://github.com/documenting-ruby/ruby.git +git remote add upstream https://github.com/ruby/ruby.git git fetch upstream git merge upstream/trunk {% endhighlight %} 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 +your own list of undocumented code. Check ruby's [list of Doc-labeled Pull +Requests](https://github.com/ruby/ruby/labels/Doc) for a list of documentation other people are working on. Get a list of undocumented code (you must have rdoc >= 3.3 for this to work): @@ -43,22 +43,14 @@ 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. -We have generated a few of these reports for various areas of the MRI source, -see our undocumented coverage -report. - top ## Documenting -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. - Write your new documentation. - 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 + `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. - To emit `foo.bar`, you can use `+foo.bar+`. It doesn't always work on operators, so use `==`, not `+==+`. @@ -84,7 +76,7 @@ Preview your new documentation in `tmpdoc/index.html`. Once it looks good delete your extra files: {% highlight bash %} rm -rf tmpdoc documentation_coverage.txt -{% endhighlight %} +{% endhighlight %} Add your documentation change: {% highlight bash %} @@ -96,9 +88,8 @@ Commit your documentation change: git commit -m "adding documentation for WHAT_YOU_CHANGED" {% endhighlight %} -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). +When you have something that's ready to go, you can submit a patch (see +instructions below). top @@ -110,17 +101,17 @@ Create a patch to submit to ruby-core: {% endhighlight %} If you're having trouble generating a patch, but you have committed your -changes to github, simply append `.patch` to the end of your commit. For +changes to GitHub, simply append `.patch` to the end of your commit. For example, if you take the [following commit](https://github.com/ruby/ruby/commit/071a678a156dde974d8e470b659c89cb02b07b3b) and [add `.patch` to the url](https://github.com/ruby/ruby/commit/071a678a156dde974d8e470b659c89cb02b07b3b.patch) you can save this page as a patch and upload it to the bug tracker. -[Open a new ticket](http://bugs.ruby-lang.org/projects/ruby-trunk/issues/new) +[Open a new ticket](https://bugs.ruby-lang.org/projects/ruby-trunk/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://bugs.ruby-lang.org/account/register) if you haven't before. +up](https://bugs.ruby-lang.org/account/register) if you haven't before. Assigning drbrain or zzak to the ticket should help make sure your patch is pulled in a timely manner. From a0ac30b61b70b32d7e4bc6078d302590a9c486b9 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Mon, 9 Oct 2017 13:53:59 +0200 Subject: [PATCH 2/2] step-by-step-guide: Link GitHub Help fork article - try to explain things --- _posts/2011-10-06-step-by-step-guide.markdown | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/_posts/2011-10-06-step-by-step-guide.markdown b/_posts/2011-10-06-step-by-step-guide.markdown index c63e49a..b4c6404 100644 --- a/_posts/2011-10-06-step-by-step-guide.markdown +++ b/_posts/2011-10-06-step-by-step-guide.markdown @@ -8,23 +8,24 @@ tags: ## Getting Set Up +The Git steps below are carefully detailed in the GitHub Help center how-to _[Fork A Repo](https://help.github.com/articles/fork-a-repo/)_. + Fork the [ruby repository on GitHub](https://github.com/ruby/ruby). -Clone your new repo: +Clone your newly-forked repository (where `YOUR_USERNAME` replaced with your GitHub username): {% highlight bash %} -git clone git@github.com:ruby/ruby.git +git clone git@github.com:YOUR_USERNAME/ruby.git {% endhighlight %} -Add the upstream remote: +Add the `upstream` remote: {% highlight bash %} git remote add upstream https://github.com/ruby/ruby.git git fetch upstream git merge upstream/trunk {% endhighlight %} -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 ruby's [list of Doc-labeled Pull +Choose some code to document. Follow these instructions to generate +a list of undocumented code. Check ruby's [list of Doc-labeled Pull Requests](https://github.com/ruby/ruby/labels/Doc) for a list of documentation other people are working on. pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy