Unified · Split
| @@ -370,9 +370,9 @@ credits = [ · 369 unmodified lines | ||
| 370 | 370 | 'https://raw.githubusercontent.com/matplotlib/matplotlib/master/LICENSE/LICENSE' |
| 371 | 371 | ], [ |
| 372 | 372 | 'Meteor', |
| 373 | − '2011-2016 Meteor Development Group', | |
| 373 | + '2011-2017 Meteor Development Group, Inc.', | |
| 374 | 374 | 'MIT', |
| 375 | − 'https://raw.githubusercontent.com/meteor/meteor/master/LICENSE.txt' | |
| 375 | + 'https://raw.githubusercontent.com/meteor/meteor/master/LICENSE' | |
| 376 | 376 | ], [ |
| 377 | 377 | 'Minitest', |
| 378 | 378 | 'Ryan Davis, seattle.rb', |
| @@ -4,6 +4,8 @@ module Docs · 3 unmodified lines | ||
| 4 | 4 | def call |
| 5 | 5 | @doc = at_css('.content-wrapper') |
| 6 | 6 | |
| 7 | + at_css('h1').content = 'Meteor Documentation' if root_page? | |
| 8 | + | |
| 7 | 9 | css('.page-actions', '.anchor').remove |
| 8 | 10 | |
| 9 | 11 | css('.header-content', '.document-formatting', 'h2 > a', '.api', '.api-body', 'div.desc').each do |node| |
| @@ -20,24 +20,30 @@ module Docs · 19 unmodified lines | ||
| 20 | 20 | ) |
| 21 | 21 | |
| 22 | 22 | options[:fix_urls] = ->(url) { |
| 23 | − url.sub! 'https://docs.meteor.com/api/blaze.html', 'http://blazejs.org/api/blaze.html' | |
| 24 | − url.sub! 'https://docs.meteor.com/api/templates.html', 'http://blazejs.org/api/templates.html' | |
| 23 | + url.sub! %r{\Ahttps://docs\.meteor\.com/(v[\d\.]*\/)?api/blaze\.html}, 'http://blazejs.org/api/blaze.html' | |
| 24 | + url.sub! %r{\Ahttps://docs\.meteor\.com/(v[\d\.]*\/)?api/templates\.html}, 'http://blazejs.org/api/templates.html' | |
| 25 | 25 | url |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | options[:attribution] = <<-HTML |
| 29 | − © 2011–2016 Meteor Development Group<br> | |
| 29 | + © 2011–2017 Meteor Development Group, Inc.<br> | |
| 30 | 30 | Licensed under the MIT License. |
| 31 | 31 | HTML |
| 32 | 32 | |
| 33 | − version '1.4' do | |
| 34 | − self.release = '1.4.3' | |
| 33 | + version '1.5' do | |
| 34 | + self.release = '1.5.0' | |
| 35 | 35 | self.base_urls = ['https://docs.meteor.com/', 'https://guide.meteor.com/', 'http://blazejs.org/'] |
| 36 | 36 | end |
| 37 | 37 | |
| 38 | + version '1.4' do | |
| 39 | + self.release = '1.4.4' | |
| 40 | + self.base_urls = ['https://guide.meteor.com/', "https://docs.meteor.com/v#{self.release}/", 'http://blazejs.org/'] | |
| 41 | + end | |
| 42 | + | |
| 38 | 43 | version '1.3' do |
| 39 | 44 | self.release = '1.3.5' |
| 40 | − self.base_urls = ["https://docs.meteor.com/v#{self.release}/", 'https://guide.meteor.com/v1.3/'] | |
| 45 | + self.base_urls = ['https://guide.meteor.com/v1.3/', "https://docs.meteor.com/v#{self.release}/"] | |
| 46 | + options[:fix_urls] = nil | |
| 41 | 47 | end |
| 42 | 48 | end |
| 43 | 49 | end |