diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee index 1a0919cb..531201e8 100644 --- a/assets/javascripts/templates/pages/about_tmpl.coffee +++ b/assets/javascripts/templates/pages/about_tmpl.coffee @@ -586,7 +586,7 @@ credits = [ 'https://raw.githubusercontent.com/mitchellh/vagrant/master/LICENSE' ], [ 'Vue.js', - '2013-2016 Evan You, Vue.js contributors', + '2013-2017 Evan You, Vue.js contributors', 'MIT', 'https://raw.githubusercontent.com/vuejs/vue/master/LICENSE' ], [ diff --git a/lib/docs/filters/vue/clean_html.rb b/lib/docs/filters/vue/clean_html.rb index 30910df7..84c5020f 100644 --- a/lib/docs/filters/vue/clean_html.rb +++ b/lib/docs/filters/vue/clean_html.rb @@ -5,6 +5,7 @@ module Docs @doc = at_css('.content') at_css('h1').content = 'Vue.js' if root_page? + doc.child.before('

Vue.js API

') if slug == 'api/' css('.demo', '.guide-links', '.footer', '#ad').remove diff --git a/lib/docs/filters/vue/entries.rb b/lib/docs/filters/vue/entries.rb index 95002faa..012a2d52 100644 --- a/lib/docs/filters/vue/entries.rb +++ b/lib/docs/filters/vue/entries.rb @@ -2,7 +2,11 @@ module Docs class Vue class EntriesFilter < Docs::EntriesFilter def get_name - at_css('h1').try(:content).presence || 'API' + if slug == 'api/' + 'API' + else + at_css('h1').content + end end def get_type diff --git a/lib/docs/scrapers/vue.rb b/lib/docs/scrapers/vue.rb index ebbde63d..b58ddc67 100644 --- a/lib/docs/scrapers/vue.rb +++ b/lib/docs/scrapers/vue.rb @@ -13,15 +13,15 @@ module Docs options[:only_patterns] = [/guide\//, /api\//] options[:attribution] = <<-HTML - © 2013–2016 Evan You, Vue.js contributors
+ © 2013–2017 Evan You, Vue.js contributors
Licensed under the MIT License. HTML version '2' do - self.release = '2.1.8' + self.release = '2.2.1' self.base_url = 'https://vuejs.org/v2/' self.root_path = 'guide/index.html' - self.initial_paths = %w(api/index.html) + self.initial_paths = %w(api/) end version '1' do