diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee index f7235f6e..6036ce00 100644 --- a/assets/javascripts/templates/pages/about_tmpl.coffee +++ b/assets/javascripts/templates/pages/about_tmpl.coffee @@ -370,9 +370,9 @@ credits = [ 'https://raw.githubusercontent.com/matplotlib/matplotlib/master/LICENSE/LICENSE' ], [ 'Meteor', - '2011-2016 Meteor Development Group', + '2011-2017 Meteor Development Group, Inc.', 'MIT', - 'https://raw.githubusercontent.com/meteor/meteor/master/LICENSE.txt' + 'https://raw.githubusercontent.com/meteor/meteor/master/LICENSE' ], [ 'Minitest', 'Ryan Davis, seattle.rb', diff --git a/lib/docs/filters/meteor/clean_html.rb b/lib/docs/filters/meteor/clean_html.rb index bbd383a7..69ce7cac 100644 --- a/lib/docs/filters/meteor/clean_html.rb +++ b/lib/docs/filters/meteor/clean_html.rb @@ -4,6 +4,8 @@ module Docs def call @doc = at_css('.content-wrapper') + at_css('h1').content = 'Meteor Documentation' if root_page? + css('.page-actions', '.anchor').remove css('.header-content', '.document-formatting', 'h2 > a', '.api', '.api-body', 'div.desc').each do |node| diff --git a/lib/docs/scrapers/meteor.rb b/lib/docs/scrapers/meteor.rb index 57fdce2e..c36347a4 100644 --- a/lib/docs/scrapers/meteor.rb +++ b/lib/docs/scrapers/meteor.rb @@ -20,24 +20,30 @@ module Docs ) options[:fix_urls] = ->(url) { - url.sub! 'https://docs.meteor.com/api/blaze.html', 'http://blazejs.org/api/blaze.html' - url.sub! 'https://docs.meteor.com/api/templates.html', 'http://blazejs.org/api/templates.html' + url.sub! %r{\Ahttps://docs\.meteor\.com/(v[\d\.]*\/)?api/blaze\.html}, 'http://blazejs.org/api/blaze.html' + url.sub! %r{\Ahttps://docs\.meteor\.com/(v[\d\.]*\/)?api/templates\.html}, 'http://blazejs.org/api/templates.html' url } options[:attribution] = <<-HTML - © 2011–2016 Meteor Development Group
+ © 2011–2017 Meteor Development Group, Inc.
Licensed under the MIT License. HTML - version '1.4' do - self.release = '1.4.3' + version '1.5' do + self.release = '1.5.0' self.base_urls = ['https://docs.meteor.com/', 'https://guide.meteor.com/', 'http://blazejs.org/'] end + version '1.4' do + self.release = '1.4.4' + self.base_urls = ['https://guide.meteor.com/', "https://docs.meteor.com/v#{self.release}/", 'http://blazejs.org/'] + end + version '1.3' do self.release = '1.3.5' - self.base_urls = ["https://docs.meteor.com/v#{self.release}/", 'https://guide.meteor.com/v1.3/'] + self.base_urls = ['https://guide.meteor.com/v1.3/', "https://docs.meteor.com/v#{self.release}/"] + options[:fix_urls] = nil end end end