Merge pull request #2104 from larouxn/update_ruby_and_related_doc

Update Ruby, Rails, and Minitest docs
pull/2073/head
Simon Legner 1 year ago committed by GitHub
commit d5f82e9bae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -242,11 +242,12 @@ done
### Ruby / Minitest ### Ruby / Minitest
### Ruby on Rails ### Ruby on Rails
* 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) * 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)
* Open "railties/lib/rails/api/task.rb" and comment out any code related to sdoc ("configure_sdoc") * Open `railties/lib/rails/api/task.rb` and comment out any code related to sdoc (`configure_sdoc`)
* Run "bundle install --without db && bundle exec rake rdoc" (in the Rails directory) * Run `bundle config set --local without 'db job'` (in the Rails directory)
* Run "cd guides && bundle exec rake guides:generate:html" * Run `bundle install && bundle exec rake rdoc` (in the Rails directory)
* Copy the "guides/output" directory to "html/guides" * Run `cd guides && bundle exec rake guides:generate:html`
* Copy the "html" directory to "docs/rails~[version]" * Copy the `guides/output` directory to `html/guides`
* Copy the `html` directory to `docs/rails~[version]`
### Ruby ### Ruby
Download the tarball of Ruby from https://www.ruby-lang.org/en/downloads/, extract it, run Download the tarball of Ruby from https://www.ruby-lang.org/en/downloads/, extract it, run

@ -40,7 +40,7 @@ module Docs
def get_name def get_name
if slug.start_with?('guides') if slug.start_with?('guides')
name = at_css('#feature h2').content.strip name = at_css('#mainCol h2').content.strip
name.remove! %r{\s\(.+\)\z} name.remove! %r{\s\(.+\)\z}
return name return name
end end

@ -8,7 +8,7 @@ module Docs
self.name = 'Ruby / Minitest' self.name = 'Ruby / Minitest'
self.slug = 'minitest' self.slug = 'minitest'
self.release = '5.17.0' self.release = '5.20.0'
self.links = { self.links = {
code: 'https://github.com/minitest/minitest' code: 'https://github.com/minitest/minitest'
} }

@ -75,8 +75,12 @@ module Docs
end end
end end
version '7.1' do
self.release = '7.1.2'
end
version '7.0' do version '7.0' do
self.release = '7.0.4' self.release = '7.0.8'
end end
version '6.1' do version '6.1' do

@ -69,16 +69,20 @@ module Docs
Licensed under their own licenses. Licensed under their own licenses.
HTML HTML
version '3.3' do
self.release = '3.3.0'
end
version '3.2' do version '3.2' do
self.release = '3.2.0' self.release = '3.2.2'
end end
version '3.1' do version '3.1' do
self.release = '3.1.3' self.release = '3.1.4'
end end
version '3' do version '3' do
self.release = '3.0.0' self.release = '3.0.6'
end end
version '2.7' do version '2.7' do

Loading…
Cancel
Save