History

Update Vue.js documentation (2.0.5, 1.0.28)

Thibaut Courouble committed 10 years ago

Commit 4119cd01 parent 09e44071 file · +7 −5Browse files

Unified · Split

lib/docs/scrapers/vue.rb+7−5
@@ -3,8 +3,6 @@ module Docs · 2 unmodified lines
33 self.name = 'Vue.js'
44 self.slug = 'vue'
55 self.type = 'vue'
6− self.root_path = '/guide/index.html'
7− self.initial_paths = %w(/api/index.html)
86 self.links = {
97 home: 'https://vuejs.org/',
108 code: 'https://github.com/vuejs/vue'
@@ -12,7 +10,7 @@ module Docs · 1 unmodified line
1210
1311 html_filters.push 'vue/clean_html', 'vue/entries'
1412
15− options[:only_patterns] = [/\/guide\//, /\/api\//]
13+ options[:only_patterns] = [/guide\//, /api\//]
1614
1715 options[:attribution] = <<-HTML
1816 &copy; 2013&ndash;2016 Evan You, Vue.js contributors<br>
@@ -20,13 +18,17 @@ module Docs · 1 unmodified line
2018 HTML
2119
2220 version '2' do
23− self.release = '2.0.3'
24− self.base_url = 'https://vuejs.org'
21+ self.release = '2.0.5'
22+ self.base_url = 'https://vuejs.org/v2/'
23+ self.root_path = 'guide/index.html'
24+ self.initial_paths = %w(api/index.html)
2525 end
2626
2727 version '1' do
2828 self.release = '1.0.28'
2929 self.base_url = 'https://v1.vuejs.org'
30+ self.root_path = '/guide/index.html'
31+ self.initial_paths = %w(/api/index.html)
3032 end
3133 end
3234 end