History

Add rails to file-scrapers.md

Enoc committed 4 years ago

Commit a4d6ad11 parent 43748512 files · +7 −8Browse files

Unified · Split

2 files
  1. docs/file-scrapers.md +7 −0
  2. lib/docs/scrapers/rdoc/rails.rb +0 −8
docs/file-scrapers.md+7−0
@@ -235,6 +235,13 @@ done · 234 unmodified lines
235235 ### Nokogiri
236236 ### Ruby / Minitest
237237 ### 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+
238245 ### Ruby
239246 Download the tarball of Ruby from https://www.ruby-lang.org/en/downloads/, extract it, run
240247 `./configure && make html` in your terminal (while your are in the ruby directory) and move
lib/docs/scrapers/rdoc/rails.rb+0−8
@@ -1,13 +1,5 @@
11 module Docs
22 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−
113 include FixInternalUrlsBehavior
124
135 self.name = 'Ruby on Rails'

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t