History

Strip heredoc whitespace of attribution text in one place

Thibaut committed 12 years ago

Commit f4f6b671 parent 588589212 files · +12 −12Browse files

Unified · Split

12 files
  1. lib/docs/filters/core/attribution.rb +1 −1
  2. lib/docs/scrapers/backbone.rb +1 −1
  3. lib/docs/scrapers/coffeescript.rb +1 −1
  4. lib/docs/scrapers/ember.rb +1 −1
  5. lib/docs/scrapers/jquery/jquery.rb +1 −1
  6. lib/docs/scrapers/less.rb +1 −1
  7. lib/docs/scrapers/lodash.rb +1 −1
  8. lib/docs/scrapers/mdn/mdn.rb +1 −1
  9. lib/docs/scrapers/node.rb +1 −1
  10. lib/docs/scrapers/php.rb +1 −1
  11. lib/docs/scrapers/sass.rb +1 −1
  12. lib/docs/scrapers/underscore.rb +1 −1
lib/docs/filters/core/attribution.rb+1−1
@@ -13,7 +13,7 @@ module Docs · 12 unmodified lines
13 <<-HTML.strip_heredoc13 <<-HTML.strip_heredoc
14 <div class="_attribution">14 <div class="_attribution">
15 <p class="_attribution-p">15 <p class="_attribution-p">
16 #{attribution.delete "\n"}<br>16 #{attribution.strip_heredoc.delete "\n"}<br>
17 #{attribution_link}17 #{attribution_link}
18 </p>18 </p>
19 </div>19 </div>
lib/docs/scrapers/backbone.rb+1−1
@@ -12,7 +12,7 @@ module Docs · 11 unmodified lines
12 options[:container] = '.container'12 options[:container] = '.container'
13 options[:skip_links] = -> (_) { true }13 options[:skip_links] = -> (_) { true }
14 14
15 options[:attribution] = <<-HTML.strip_heredoc15 options[:attribution] = <<-HTML
16 &copy; 2010&ndash;2013 Jeremy Ashkenas, DocumentCloud<br>16 &copy; 2010&ndash;2013 Jeremy Ashkenas, DocumentCloud<br>
17 Licensed under the MIT License.17 Licensed under the MIT License.
18 HTML18 HTML
lib/docs/scrapers/coffeescript.rb+1−1
@@ -11,7 +11,7 @@ module Docs · 10 unmodified lines
11 options[:container] = '.container'11 options[:container] = '.container'
12 options[:skip_links] = -> (_) { true }12 options[:skip_links] = -> (_) { true }
13 13
14 options[:attribution] = <<-HTML.strip_heredoc14 options[:attribution] = <<-HTML
15 &copy; 2009&ndash;2013 Jeremy Ashkenas<br>15 &copy; 2009&ndash;2013 Jeremy Ashkenas<br>
16 Licensed under the MIT License.16 Licensed under the MIT License.
17 HTML17 HTML
lib/docs/scrapers/ember.rb+1−1
@@ -48,7 +48,7 @@ module Docs · 47 unmodified lines
48 48
49 options[:skip_patterns] = [/\._/]49 options[:skip_patterns] = [/\._/]
50 50
51 options[:attribution] = <<-HTML.strip_heredoc51 options[:attribution] = <<-HTML
52 &copy; 2013 Yehuda Katz, Tom Dale and Ember.js contributors<br>52 &copy; 2013 Yehuda Katz, Tom Dale and Ember.js contributors<br>
53 Licensed under the MIT License.53 Licensed under the MIT License.
54 HTML54 HTML
lib/docs/scrapers/jquery/jquery.rb+1−1
@@ -11,7 +11,7 @@ module Docs · 10 unmodified lines
11 options[:trailing_slash] = false11 options[:trailing_slash] = false
12 options[:skip_patterns] = [/category/]12 options[:skip_patterns] = [/category/]
13 13
14 options[:attribution] = <<-HTML.strip_heredoc14 options[:attribution] = <<-HTML
15 &copy; 2013 The jQuery Foundation<br>15 &copy; 2013 The jQuery Foundation<br>
16 Licensed under the MIT License.16 Licensed under the MIT License.
17 HTML17 HTML
lib/docs/scrapers/less.rb+1−1
@@ -10,7 +10,7 @@ module Docs · 9 unmodified lines
10 options[:container] = 'section'10 options[:container] = 'section'
11 options[:skip_links] = -> (_) { true }11 options[:skip_links] = -> (_) { true }
12 12
13 options[:attribution] = <<-HTML.strip_heredoc13 options[:attribution] = <<-HTML
14 &copy; 2009&ndash;2013 Alexis Sellier &amp; The Core Less Team<br>14 &copy; 2009&ndash;2013 Alexis Sellier &amp; The Core Less Team<br>
15 Licensed under the Apache License v2.0.15 Licensed under the Apache License v2.0.
16 HTML16 HTML
lib/docs/scrapers/lodash.rb+1−1
@@ -12,7 +12,7 @@ module Docs · 11 unmodified lines
12 options[:container] = 'h1+div+div'12 options[:container] = 'h1+div+div'
13 options[:skip_links] = -> (_) { true }13 options[:skip_links] = -> (_) { true }
14 14
15 options[:attribution] = <<-HTML.strip_heredoc15 options[:attribution] = <<-HTML
16 &copy; 2012&ndash;2013 The Dojo Foundation<br>16 &copy; 2012&ndash;2013 The Dojo Foundation<br>
17 Licensed under the MIT License.17 Licensed under the MIT License.
18 HTML18 HTML
lib/docs/scrapers/mdn/mdn.rb+1−1
@@ -10,7 +10,7 @@ module Docs · 9 unmodified lines
10 text_filters.insert_before 'attribution', 'mdn/contribute_link'10 text_filters.insert_before 'attribution', 'mdn/contribute_link'
11 11
12 options[:trailing_slash] = false12 options[:trailing_slash] = false
13 options[:attribution] = <<-HTML.strip_heredoc13 options[:attribution] = <<-HTML
14 &copy; 2013 Mozilla Contributors<br>14 &copy; 2013 Mozilla Contributors<br>
15 Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.15 Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
16 HTML16 HTML
lib/docs/scrapers/node.rb+1−1
@@ -13,7 +13,7 @@ module Docs · 12 unmodified lines
13 options[:container] = '#apicontent'13 options[:container] = '#apicontent'
14 options[:skip] = %w(index.html all.html documentation.html synopsis.html)14 options[:skip] = %w(index.html all.html documentation.html synopsis.html)
15 15
16 options[:attribution] = <<-HTML.strip_heredoc16 options[:attribution] = <<-HTML
17 &copy; Joyent, Inc. and other Node contributors<br>17 &copy; Joyent, Inc. and other Node contributors<br>
18 Licensed under the MIT License.18 Licensed under the MIT License.
19 HTML19 HTML
lib/docs/scrapers/php.rb+1−1
@@ -107,7 +107,7 @@ module Docs · 106 unmodified lines
107 spl.datastructures.html spl.iterators.html spl.interfaces.html107 spl.datastructures.html spl.iterators.html spl.interfaces.html
108 spl.exceptions.html spl.files.html spl.misc.html)108 spl.exceptions.html spl.files.html spl.misc.html)
109 109
110 options[:attribution] = <<-HTML.strip_heredoc110 options[:attribution] = <<-HTML
111 &copy; 1997&ndash;2013 The PHP Documentation Group<br>111 &copy; 1997&ndash;2013 The PHP Documentation Group<br>
112 Licensed under the Creative Commons Attribution License v3.0 or later.112 Licensed under the Creative Commons Attribution License v3.0 or later.
113 HTML113 HTML
lib/docs/scrapers/sass.rb+1−1
@@ -17,7 +17,7 @@ module Docs · 16 unmodified lines
17 'Sass Functions' if filter.slug == 'Sass/Script/Functions'17 'Sass Functions' if filter.slug == 'Sass/Script/Functions'
18 end18 end
19 19
20 options[:attribution] = <<-HTML.strip_heredoc20 options[:attribution] = <<-HTML
21 &copy; 2006&ndash;2013 Hampton Catlin, Nathan Weizenbaum, and Chris Eppstein<br>21 &copy; 2006&ndash;2013 Hampton Catlin, Nathan Weizenbaum, and Chris Eppstein<br>
22 Licensed under the MIT License.22 Licensed under the MIT License.
23 HTML23 HTML
lib/docs/scrapers/underscore.rb+1−1
@@ -12,7 +12,7 @@ module Docs · 11 unmodified lines
12 options[:container] = '#documentation'12 options[:container] = '#documentation'
13 options[:skip_links] = -> (_) { true }13 options[:skip_links] = -> (_) { true }
14 14
15 options[:attribution] = <<-HTML.strip_heredoc15 options[:attribution] = <<-HTML
16 &copy; 2009&ndash;2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters &amp; Editors<br>16 &copy; 2009&ndash;2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters &amp; Editors<br>
17 Licensed under the MIT License.17 Licensed under the MIT License.
18 HTML18 HTML