History

Update Meteor documentation (1.5.0, 1.4.4, 1.3.5)

Thibaut Courouble committed 9 years ago

Commit 2fbacc51 parent 267f95f3 files · +16 −8Browse files

Unified · Split

3 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +2 −2
  2. lib/docs/filters/meteor/clean_html.rb +2 −0
  3. lib/docs/scrapers/meteor.rb +12 −6
assets/javascripts/templates/pages/about_tmpl.coffee+2−2
@@ -370,9 +370,9 @@ credits = [ · 369 unmodified lines
370 'https://raw.githubusercontent.com/matplotlib/matplotlib/master/LICENSE/LICENSE'370 'https://raw.githubusercontent.com/matplotlib/matplotlib/master/LICENSE/LICENSE'
371 ], [371 ], [
372 'Meteor',372 'Meteor',
373 '2011-2016 Meteor Development Group',373 '2011-2017 Meteor Development Group, Inc.',
374 'MIT',374 'MIT',
375 'https://raw.githubusercontent.com/meteor/meteor/master/LICENSE.txt'375 'https://raw.githubusercontent.com/meteor/meteor/master/LICENSE'
376 ], [376 ], [
377 'Minitest',377 'Minitest',
378 'Ryan Davis, seattle.rb',378 'Ryan Davis, seattle.rb',
lib/docs/filters/meteor/clean_html.rb+2−0
@@ -4,6 +4,8 @@ module Docs · 3 unmodified lines
4 def call4 def call
5 @doc = at_css('.content-wrapper')5 @doc = at_css('.content-wrapper')
6 6
7 at_css('h1').content = 'Meteor Documentation' if root_page?
8
7 css('.page-actions', '.anchor').remove9 css('.page-actions', '.anchor').remove
8 10
9 css('.header-content', '.document-formatting', 'h2 > a', '.api', '.api-body', 'div.desc').each do |node|11 css('.header-content', '.document-formatting', 'h2 > a', '.api', '.api-body', 'div.desc').each do |node|
lib/docs/scrapers/meteor.rb+12−6
@@ -20,24 +20,30 @@ module Docs · 19 unmodified lines
20 )20 )
21 21
22 options[:fix_urls] = ->(url) {22 options[:fix_urls] = ->(url) {
23 url.sub! 'https://docs.meteor.com/api/blaze.html', 'http://blazejs.org/api/blaze.html'23 url.sub! %r{\Ahttps://docs\.meteor\.com/(v[\d\.]*\/)?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'24 url.sub! %r{\Ahttps://docs\.meteor\.com/(v[\d\.]*\/)?api/templates\.html}, 'http://blazejs.org/api/templates.html'
25 url25 url
26 }26 }
27 27
28 options[:attribution] = <<-HTML28 options[:attribution] = <<-HTML
29 &copy; 2011&ndash;2016 Meteor Development Group<br>29 &copy; 2011&ndash;2017 Meteor Development Group, Inc.<br>
30 Licensed under the MIT License.30 Licensed under the MIT License.
31 HTML31 HTML
32 32
33 version '1.4' do33 version '1.5' do
34 self.release = '1.4.3'34 self.release = '1.5.0'
35 self.base_urls = ['https://docs.meteor.com/', 'https://guide.meteor.com/', 'http://blazejs.org/']35 self.base_urls = ['https://docs.meteor.com/', 'https://guide.meteor.com/', 'http://blazejs.org/']
36 end36 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 version '1.3' do43 version '1.3' do
39 self.release = '1.3.5'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 end47 end
42 end48 end
43end49end