Skip to content

Commit a4f87bf

Browse files
committed
Update Ruby on Rails documentation (8.1.2)
1 parent 0012812 commit a4f87bf

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

docs/file-scrapers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,13 +272,13 @@ cp -r minitest/docs $DEVDOCS/docs/minitest
272272
```
273273

274274
### Ruby on Rails
275-
* 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)
275+
* Run `git clone --branch v$RELEASE --depth 7 https://github.com/rails/rails.git && cd rails`
276276
* Open `railties/lib/rails/api/task.rb` and comment out any code related to sdoc (`configure_sdoc`)
277277
* Run `bundle config set --local without 'db job'` (in the Rails directory)
278278
* Run `bundle install && bundle exec rake rdoc` (in the Rails directory)
279279
* Run `cd guides && bundle exec rake guides:generate:html && cd ..`
280280
* Run `cp -r guides/output html/guides`
281-
* Run `cp -r html $DEVDOCS/docs/rails~[version]`
281+
* Run `cp -r html $DEVDOCS/docs/rails~$VERSION`
282282

283283
### Ruby
284284
Download the tarball of Ruby from https://www.ruby-lang.org/en/downloads/, extract it, run

lib/docs/scrapers/rdoc/rails.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ class Rails < Rdoc
7575
end
7676
end
7777

78+
version '8.1' do
79+
self.release = '8.1.2'
80+
end
81+
7882
version '8.0' do
7983
self.release = '8.0.1'
8084
end

0 commit comments

Comments
 (0)