From d9ceb673bc00b7fc26c65be3897e7c9782746b0d Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sat, 23 Apr 2016 12:40:01 -0400 Subject: [PATCH] Update Vue.js documentation (1.0.21) --- assets/javascripts/views/pages/javascript.coffee | 1 - assets/javascripts/views/pages/simple.coffee | 1 + lib/docs/filters/vue/clean_html.rb | 1 + lib/docs/scrapers/vue.rb | 2 +- 4 files changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/javascripts/views/pages/javascript.coffee b/assets/javascripts/views/pages/javascript.coffee index e0403214..eb432ea1 100644 --- a/assets/javascripts/views/pages/javascript.coffee +++ b/assets/javascripts/views/pages/javascript.coffee @@ -24,5 +24,4 @@ app.views.JavascriptPage app.views.DojoPage = app.views.RequirejsPage = -app.views.VuePage = app.views.JavascriptWithMarkupCheckPage diff --git a/assets/javascripts/views/pages/simple.coffee b/assets/javascripts/views/pages/simple.coffee index aefd8002..8836f3b7 100644 --- a/assets/javascripts/views/pages/simple.coffee +++ b/assets/javascripts/views/pages/simple.coffee @@ -27,5 +27,6 @@ app.views.SphinxSimplePage = app.views.TensorflowPage = app.views.TypescriptPage = app.views.UnderscorePage = +app.views.VuePage = app.views.WebpackPage = app.views.SimplePage diff --git a/lib/docs/filters/vue/clean_html.rb b/lib/docs/filters/vue/clean_html.rb index 7eee4348..b355fb32 100644 --- a/lib/docs/filters/vue/clean_html.rb +++ b/lib/docs/filters/vue/clean_html.rb @@ -12,6 +12,7 @@ module Docs css('figure').each do |node| node.name = 'pre' node.content = node.at_css('td.code pre').css('.line').map(&:content).join("\n") + node['data-language'] = node['class'][/highlight (\w+)/, 1] end doc diff --git a/lib/docs/scrapers/vue.rb b/lib/docs/scrapers/vue.rb index 41ecb8fb..73ab08f5 100644 --- a/lib/docs/scrapers/vue.rb +++ b/lib/docs/scrapers/vue.rb @@ -3,7 +3,7 @@ module Docs self.name = 'Vue.js' self.slug = 'vue' self.type = 'vue' - self.release = '1.0.19' + self.release = '1.0.21' self.base_url = 'https://vuejs.org' self.root_path = '/guide/index.html' self.initial_paths = %w(/api/index.html)