|
@@ -5,16 +5,25 @@ module Docs
|
|
|
self.name = 'Ruby on Rails'
|
|
self.name = 'Ruby on Rails'
|
|
|
self.slug = 'rails'
|
|
self.slug = 'rails'
|
|
|
self.dir = '/Users/Thibaut/DevDocs/Docs/RDoc/Rails'
|
|
self.dir = '/Users/Thibaut/DevDocs/Docs/RDoc/Rails'
|
|
|
|
|
+ self.initial_paths = %w(guides/index.html)
|
|
|
self.links = {
|
|
self.links = {
|
|
|
home: 'http://rubyonrails.org/',
|
|
home: 'http://rubyonrails.org/',
|
|
|
code: 'https://github.com/rails/rails'
|
|
code: 'https://github.com/rails/rails'
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
html_filters.replace 'rdoc/entries', 'rails/entries'
|
|
html_filters.replace 'rdoc/entries', 'rails/entries'
|
|
|
|
|
+ html_filters.push 'rails/clean_html_guides'
|
|
|
|
|
+
|
|
|
|
|
+ options[:skip_rdoc_filters?] = ->(filter) { filter.slug.start_with?('guides/') }
|
|
|
|
|
|
|
|
options[:root_title] = 'Ruby on Rails'
|
|
options[:root_title] = 'Ruby on Rails'
|
|
|
|
|
|
|
|
options[:skip] += %w(
|
|
options[:skip] += %w(
|
|
|
|
|
+ guides/credits.html
|
|
|
|
|
+ guides/ruby_on_rails_guides_guidelines.html
|
|
|
|
|
+ guides/contributing_to_ruby_on_rails.html
|
|
|
|
|
+ guides/development_dependencies_install.html
|
|
|
|
|
+ guides/api_documentation_guidelines.html
|
|
|
ActionController/Instrumentation.html
|
|
ActionController/Instrumentation.html
|
|
|
ActionController/Rendering.html
|
|
ActionController/Rendering.html
|
|
|
ActionDispatch/DebugExceptions.html
|
|
ActionDispatch/DebugExceptions.html
|
|
@@ -30,6 +39,7 @@ module Docs
|
|
|
ActiveSupport/Notifications/Fanout.html)
|
|
ActiveSupport/Notifications/Fanout.html)
|
|
|
|
|
|
|
|
options[:skip_patterns] += [
|
|
options[:skip_patterns] += [
|
|
|
|
|
+ /release_notes/,
|
|
|
/\AActionController\/Testing/,
|
|
/\AActionController\/Testing/,
|
|
|
/\AActionView\/LookupContext/,
|
|
/\AActionView\/LookupContext/,
|
|
|
/\AActionView\/Resolver/,
|
|
/\AActionView\/Resolver/,
|
|
@@ -43,21 +53,30 @@ module Docs
|
|
|
/\ARails\/PluginBuilder/,
|
|
/\ARails\/PluginBuilder/,
|
|
|
/\ARails\/Generators\/Testing/]
|
|
/\ARails\/Generators\/Testing/]
|
|
|
|
|
|
|
|
- options[:attribution] = <<-HTML
|
|
|
|
|
- © 2004–2017 David Heinemeier Hansson<br>
|
|
|
|
|
- Licensed under the MIT License.
|
|
|
|
|
- HTML
|
|
|
|
|
|
|
+ options[:attribution] = ->(filter) do
|
|
|
|
|
+ if filter.slug.start_with?('guides')
|
|
|
|
|
+ <<-HTML
|
|
|
|
|
+ © 2004–2017 David Heinemeier Hansson<br>
|
|
|
|
|
+ Licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.
|
|
|
|
|
+ HTML
|
|
|
|
|
+ else
|
|
|
|
|
+ <<-HTML
|
|
|
|
|
+ © 2004–2017 David Heinemeier Hansson<br>
|
|
|
|
|
+ Licensed under the MIT License.
|
|
|
|
|
+ HTML
|
|
|
|
|
+ end
|
|
|
|
|
+ end
|
|
|
|
|
|
|
|
version '5.1' do
|
|
version '5.1' do
|
|
|
- self.release = '5.1.0'
|
|
|
|
|
|
|
+ self.release = '5.1.4'
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
version '5.0' do
|
|
version '5.0' do
|
|
|
- self.release = '5.0.2'
|
|
|
|
|
|
|
+ self.release = '5.0.6'
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
version '4.2' do
|
|
version '4.2' do
|
|
|
- self.release = '4.2.8'
|
|
|
|
|
|
|
+ self.release = '4.2.10'
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
version '4.1' do
|
|
version '4.1' do
|