@@ -5,16 +5,25 @@ class Rails < Rdoc
55 self . name = 'Ruby on Rails'
66 self . slug = 'rails'
77 self . dir = '/Users/Thibaut/DevDocs/Docs/RDoc/Rails'
8+ self . initial_paths = %w( guides/index.html )
89 self . links = {
910 home : 'http://rubyonrails.org/' ,
1011 code : 'https://github.com/rails/rails'
1112 }
1213
1314 html_filters . replace 'rdoc/entries' , 'rails/entries'
15+ html_filters . push 'rails/clean_html_guides'
16+
17+ options [ :skip_rdoc_filters? ] = -> ( filter ) { filter . slug . start_with? ( 'guides/' ) }
1418
1519 options [ :root_title ] = 'Ruby on Rails'
1620
1721 options [ :skip ] += %w(
22+ guides/credits.html
23+ guides/ruby_on_rails_guides_guidelines.html
24+ guides/contributing_to_ruby_on_rails.html
25+ guides/development_dependencies_install.html
26+ guides/api_documentation_guidelines.html
1827 ActionController/Instrumentation.html
1928 ActionController/Rendering.html
2029 ActionDispatch/DebugExceptions.html
@@ -30,6 +39,7 @@ class Rails < Rdoc
3039 ActiveSupport/Notifications/Fanout.html )
3140
3241 options [ :skip_patterns ] += [
42+ /release_notes/ ,
3343 /\A ActionController\/ Testing/ ,
3444 /\A ActionView\/ LookupContext/ ,
3545 /\A ActionView\/ Resolver/ ,
@@ -43,21 +53,30 @@ class Rails < Rdoc
4353 /\A Rails\/ PluginBuilder/ ,
4454 /\A Rails\/ Generators\/ Testing/ ]
4555
46- options [ :attribution ] = <<-HTML
47- © 2004–2017 David Heinemeier Hansson< br >
48- Licensed under the MIT License.
49- HTML
56+ options [ :attribution ] = -> ( filter ) do
57+ if filter . slug . start_with? ( 'guides' )
58+ <<-HTML
59+ © 2004–2017 David Heinemeier Hansson< br >
60+ Licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.
61+ HTML
62+ else
63+ <<-HTML
64+ © 2004–2017 David Heinemeier Hansson< br >
65+ Licensed under the MIT License.
66+ HTML
67+ end
68+ end
5069
5170 version '5.1' do
52- self . release = '5.1.0 '
71+ self . release = '5.1.4 '
5372 end
5473
5574 version '5.0' do
56- self . release = '5.0.2 '
75+ self . release = '5.0.6 '
5776 end
5877
5978 version '4.2' do
60- self . release = '4.2.8 '
79+ self . release = '4.2.10 '
6180 end
6281
6382 version '4.1' do
0 commit comments