History

Improve Grunt scraper

Thibaut Courouble committed 9 years ago

Commit 9d53de61 parent 05f2a664 files · +3 −9Browse files

Unified · Split

4 files
  1. assets/javascripts/views/pages/javascript.coffee +0 −8
  2. assets/javascripts/views/pages/simple.coffee +1 −0
  3. lib/docs/filters/grunt/clean_html.rb +1 −0
  4. lib/docs/scrapers/grunt.rb +1 −1
assets/javascripts/views/pages/javascript.coffee+0−8
@@ -1,10 +1,5 @@
1#= require views/pages/base1#= require views/pages/base
2 2
3class app.views.JavascriptPage extends app.views.BasePage
4 prepare: ->
5 @highlightCode @findAllByTag('pre'), 'javascript'
6 return
7
8class app.views.JavascriptWithMarkupCheckPage extends app.views.BasePage3class app.views.JavascriptWithMarkupCheckPage extends app.views.BasePage
9 prepare: ->4 prepare: ->
10 for el in @findAllByTag('pre')5 for el in @findAllByTag('pre')
@@ -15,9 +10,6 @@ class app.views.JavascriptWithMarkupCheckPage extends app.views.BasePage · 4 unmodified lines
15 @highlightCode el, language10 @highlightCode el, language
16 return11 return
17 12
18app.views.GruntPage =
19app.views.JavascriptPage
20
21app.views.DojoPage =13app.views.DojoPage =
22app.views.RequirejsPage =14app.views.RequirejsPage =
23app.views.JavascriptWithMarkupCheckPage15app.views.JavascriptWithMarkupCheckPage
assets/javascripts/views/pages/simple.coffee+1−0
@@ -30,6 +30,7 @@ app.views.ExpressPage = · 29 unmodified lines
30app.views.FlowPage =30app.views.FlowPage =
31app.views.GithubPage =31app.views.GithubPage =
32app.views.GoPage =32app.views.GoPage =
33app.views.GruntPage =
33app.views.ImmutablePage =34app.views.ImmutablePage =
34app.views.InfluxdataPage =35app.views.InfluxdataPage =
35app.views.JasminePage =36app.views.JasminePage =
lib/docs/filters/grunt/clean_html.rb+1−0
@@ -19,6 +19,7 @@ module Docs · 18 unmodified lines
19 # Remove code highlighting19 # Remove code highlighting
20 css('pre').each do |node|20 css('pre').each do |node|
21 node.content = node.content21 node.content = node.content
22 node['data-language'] = 'javascript'
22 end23 end
23 24
24 doc25 doc
lib/docs/scrapers/grunt.rb+1−1
@@ -3,7 +3,7 @@ module Docs · 2 unmodified lines
3 self.name = 'Grunt'3 self.name = 'Grunt'
4 self.type = 'grunt'4 self.type = 'grunt'
5 self.release = '1.0.1'5 self.release = '1.0.1'
6 self.base_url = 'http://gruntjs.com/'6 self.base_url = 'https://gruntjs.com/'
7 self.root_path = 'getting-started'7 self.root_path = 'getting-started'
8 self.initial_paths = %w(api/grunt)8 self.initial_paths = %w(api/grunt)
9 9