Update Vue.js documentation (1.0.4)

pull/281/merge
Thibaut 9 years ago
parent 51895e9889
commit 11bcab7464

@ -71,5 +71,6 @@
'pages/socketio', 'pages/socketio',
'pages/sphinx', 'pages/sphinx',
'pages/underscore', 'pages/underscore',
'pages/vue',
'pages/yard', 'pages/yard',
'pages/yii'; 'pages/yii';

@ -71,5 +71,6 @@
'pages/socketio', 'pages/socketio',
'pages/sphinx', 'pages/sphinx',
'pages/underscore', 'pages/underscore',
'pages/vue',
'pages/yard', 'pages/yard',
'pages/yii'; 'pages/yii';

@ -6,7 +6,7 @@ module Docs
at_css('h1').content = 'Vue.js' if root_page? at_css('h1').content = 'Vue.js' if root_page?
css('#demo').remove css('.demo', '.guide-links', '.footer').remove
# Remove code highlighting # Remove code highlighting
css('figure').each do |node| css('figure').each do |node|

@ -2,7 +2,7 @@ module Docs
class Vue class Vue
class EntriesFilter < Docs::EntriesFilter class EntriesFilter < Docs::EntriesFilter
def get_name def get_name
at_css('h1').content at_css('h1').content.presence || 'API'
end end
def get_type def get_type
@ -15,11 +15,16 @@ module Docs
def additional_entries def additional_entries
return [] if slug.start_with?('guide') return [] if slug.start_with?('guide')
type = nil
css('h3').map do |node| css('h2, h3').each_with_object [] do |node, entries|
name = node.content.strip if node.name == 'h2'
name.sub! %r{\(.*\)}, '()' type = node.content.strip
[name, node['id'], "API: #{self.name}"] else
name = node.content.strip
name.sub! %r{\(.*\)}, '()'
entries << [name, node['id'], "API: #{type}"]
end
end end
end end
end end

@ -3,7 +3,7 @@ module Docs
self.name = 'Vue.js' self.name = 'Vue.js'
self.slug = 'vue' self.slug = 'vue'
self.type = 'vue' self.type = 'vue'
self.version = '0.12.14' self.version = '1.0.4'
self.base_url = 'http://vuejs.org' self.base_url = 'http://vuejs.org'
self.root_path = '/guide/index.html' self.root_path = '/guide/index.html'
self.initial_paths = %w(/api/index.html) self.initial_paths = %w(/api/index.html)

Loading…
Cancel
Save