Fixes #607.
Showing the changes to lib/docs (2 of 2 files). Show all
Unified · Split
| @@ -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').remove | 10 | 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 highlighting | 16 | # Remove code highlighting |
| 13 | css('figure').each do |node| | 17 | css('figure').each do |node| |
| 14 | node.name = 'pre' | 18 | node.name = 'pre' |
| @@ -18,7 +18,7 @@ module Docs · 17 unmodified lines | |||
| 18 | HTML | 18 | HTML |
| 19 | 19 | ||
| 20 | version '2' do | 20 | 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/) |