Unified · Split
| @@ -9,6 +9,7 @@ module Docs · 8 unmodified lines | ||
| 9 | 9 | if subpath.start_with?('api') |
| 10 | 10 | name |
| 11 | 11 | else |
| 12 | + return 'Guide: Blaze' if base_url.host == 'blazejs.org' && subpath.start_with?('guide') | |
| 12 | 13 | type = at_css('.item-toc.current').ancestors('li').first.at_css('.heading-toc').try(:content) || 'Guide' |
| 13 | 14 | type.prepend 'Guide: ' if base_url.host == 'guide.meteor.com' && type != 'Guide' |
| 14 | 15 | type |
| @@ -19,14 +19,20 @@ module Docs · 18 unmodified lines | ||
| 19 | 19 | writing-packages.html |
| 20 | 20 | ) |
| 21 | 21 | |
| 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' | |
| 25 | + url | |
| 26 | + } | |
| 27 | + | |
| 22 | 28 | options[:attribution] = <<-HTML |
| 23 | 29 | © 2011–2016 Meteor Development Group<br> |
| 24 | 30 | Licensed under the MIT License. |
| 25 | 31 | HTML |
| 26 | 32 | |
| 27 | 33 | version '1.4' do |
| 28 | − self.release = '1.4.0' | |
| 29 | − self.base_urls = ['https://docs.meteor.com/', 'https://guide.meteor.com/'] | |
| 34 | + self.release = '1.4.1' | |
| 35 | + self.base_urls = ['https://docs.meteor.com/', 'https://guide.meteor.com/', 'http://blazejs.org/'] | |
| 30 | 36 | end |
| 31 | 37 | |
| 32 | 38 | version '1.3' do |