Unified · Split
| @@ -235,6 +235,13 @@ done · 234 unmodified lines | |||
| 235 | ### Nokogiri | 235 | ### Nokogiri |
| 236 | ### Ruby / Minitest | 236 | ### Ruby / Minitest |
| 237 | ### Ruby on Rails | 237 | ### Ruby on Rails |
| 238 | * Download a release at https://github.com/rails/rails/releases or clone https://github.com/rails/rails.git (checkout to the branch of the rails' version that is going to be scraped) | ||
| 239 | * Open "railties/lib/rails/api/task.rb" and comment out any code related to sdoc ("configure_sdoc") | ||
| 240 | * Run "bundle install --without db && bundle exec rake rdoc" (in the Rails directory) | ||
| 241 | * Run "cd guides && bundle exec rake guides:generate:html" | ||
| 242 | * Copy the "guides/output" directory to "html/guides" | ||
| 243 | * Copy the "html" directory to "docs/rails~[version]" | ||
| 244 | |||
| 238 | ### Ruby | 245 | ### Ruby |
| 239 | Download the tarball of Ruby from https://www.ruby-lang.org/en/downloads/, extract it, run | 246 | Download the tarball of Ruby from https://www.ruby-lang.org/en/downloads/, extract it, run |
| 240 | `./configure && make html` in your terminal (while your are in the ruby directory) and move | 247 | `./configure && make html` in your terminal (while your are in the ruby directory) and move |
| @@ -1,13 +1,5 @@ | |||
| 1 | module Docs | 1 | module Docs |
| 2 | class Rails < Rdoc | 2 | class Rails < Rdoc |
| 3 | # Instructions: | ||
| 4 | # 1. Download a release at https://github.com/rails/rails/releases | ||
| 5 | # 2. Open "railties/lib/rails/api/task.rb" and comment out any code related to sdoc ("configure_sdoc") | ||
| 6 | # 3. Run "bundle install --without db && bundle exec rake rdoc" (in the Rails directory) | ||
| 7 | # 4. Run "cd guides && bundle exec rake guides:generate:html" | ||
| 8 | # 5. Copy the "guides/output" directory to "html/guides" | ||
| 9 | # 6. Copy the "html" directory to "docs/rails~[version]" | ||
| 10 | |||
| 11 | include FixInternalUrlsBehavior | 3 | include FixInternalUrlsBehavior |
| 12 | 4 | ||
| 13 | self.name = 'Ruby on Rails' | 5 | self.name = 'Ruby on Rails' |