Update Vue.js documentation (2.2.1, 1.0.28)

pull/570/merge
Thibaut Courouble 8 years ago
parent 105ac36000
commit 3920b44059

@ -586,7 +586,7 @@ credits = [
'https://raw.githubusercontent.com/mitchellh/vagrant/master/LICENSE' 'https://raw.githubusercontent.com/mitchellh/vagrant/master/LICENSE'
], [ ], [
'Vue.js', 'Vue.js',
'2013-2016 Evan You, Vue.js contributors', '2013-2017 Evan You, Vue.js contributors',
'MIT', 'MIT',
'https://raw.githubusercontent.com/vuejs/vue/master/LICENSE' 'https://raw.githubusercontent.com/vuejs/vue/master/LICENSE'
], [ ], [

@ -5,6 +5,7 @@ module Docs
@doc = at_css('.content') @doc = at_css('.content')
at_css('h1').content = 'Vue.js' if root_page? at_css('h1').content = 'Vue.js' if root_page?
doc.child.before('<h1>Vue.js API</h1>') if slug == 'api/'
css('.demo', '.guide-links', '.footer', '#ad').remove css('.demo', '.guide-links', '.footer', '#ad').remove

@ -2,7 +2,11 @@ module Docs
class Vue class Vue
class EntriesFilter < Docs::EntriesFilter class EntriesFilter < Docs::EntriesFilter
def get_name def get_name
at_css('h1').try(:content).presence || 'API' if slug == 'api/'
'API'
else
at_css('h1').content
end
end end
def get_type def get_type

@ -13,15 +13,15 @@ module Docs
options[:only_patterns] = [/guide\//, /api\//] options[:only_patterns] = [/guide\//, /api\//]
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
&copy; 2013&ndash;2016 Evan You, Vue.js contributors<br> &copy; 2013&ndash;2017 Evan You, Vue.js contributors<br>
Licensed under the MIT License. Licensed under the MIT License.
HTML HTML
version '2' do version '2' do
self.release = '2.1.8' self.release = '2.2.1'
self.base_url = 'https://vuejs.org/v2/' self.base_url = 'https://vuejs.org/v2/'
self.root_path = 'guide/index.html' self.root_path = 'guide/index.html'
self.initial_paths = %w(api/index.html) self.initial_paths = %w(api/)
end end
version '1' do version '1' do

Loading…
Cancel
Save