History

Update Vue.js documentation (2.2.6)

Fixes #607.

Thibaut Courouble committed 9 years ago

Commit e586fe41 parent 4d7da6a2 files · +6 −2Browse files

Unified · Split

2 files
  1. lib/docs/filters/vue/clean_html.rb +5 −1
  2. lib/docs/scrapers/vue.rb +1 −1
lib/docs/filters/vue/clean_html.rb+5−1
@@ -5,10 +5,14 @@ module Docs · 4 unmodified lines
5 @doc = at_css('.content')5 @doc = at_css('.content')
6 6
7 at_css('h1').content = 'Vue.js' if root_page?7 at_css('h1').content = 'Vue.js' if root_page?
8 doc.child.before('<h1>Vue.js API</h1>') if slug == 'api/'8 doc.child.before('<h1>Vue.js API</h1>') if slug == 'api/' || slug == 'api/index'
9 9
10 css('.demo', '.guide-links', '.footer', '#ad').remove10 css('.demo', '.guide-links', '.footer', '#ad').remove
11 11
12 css('.__cf_email__').each do |node|
13 node.replace(decode_cloudflare_email(node['data-cfemail']))
14 end
15
12 # Remove code highlighting16 # Remove code highlighting
13 css('figure').each do |node|17 css('figure').each do |node|
14 node.name = 'pre'18 node.name = 'pre'
lib/docs/scrapers/vue.rb+1−1
@@ -18,7 +18,7 @@ module Docs · 17 unmodified lines
18 HTML18 HTML
19 19
20 version '2' do20 version '2' do
21 self.release = '2.2.5'21 self.release = '2.2.6'
22 self.base_url = 'https://vuejs.org/v2/'22 self.base_url = 'https://vuejs.org/v2/'
23 self.root_path = 'guide/index.html'23 self.root_path = 'guide/index.html'
24 self.initial_paths = %w(api/)24 self.initial_paths = %w(api/)