diff --git a/assets/javascripts/views/pages/javascript.coffee b/assets/javascripts/views/pages/javascript.coffee index 2f5a0fe3..ea5ad9be 100644 --- a/assets/javascripts/views/pages/javascript.coffee +++ b/assets/javascripts/views/pages/javascript.coffee @@ -1,10 +1,5 @@ #= require views/pages/base -class app.views.JavascriptPage extends app.views.BasePage - prepare: -> - @highlightCode @findAllByTag('pre'), 'javascript' - return - class app.views.JavascriptWithMarkupCheckPage extends app.views.BasePage prepare: -> for el in @findAllByTag('pre') @@ -15,9 +10,6 @@ class app.views.JavascriptWithMarkupCheckPage extends app.views.BasePage @highlightCode el, language return -app.views.GruntPage = -app.views.JavascriptPage - app.views.DojoPage = app.views.RequirejsPage = app.views.JavascriptWithMarkupCheckPage diff --git a/assets/javascripts/views/pages/simple.coffee b/assets/javascripts/views/pages/simple.coffee index 639e0871..d1a53337 100644 --- a/assets/javascripts/views/pages/simple.coffee +++ b/assets/javascripts/views/pages/simple.coffee @@ -30,6 +30,7 @@ app.views.ExpressPage = app.views.FlowPage = app.views.GithubPage = app.views.GoPage = +app.views.GruntPage = app.views.ImmutablePage = app.views.InfluxdataPage = app.views.JasminePage = diff --git a/lib/docs/filters/grunt/clean_html.rb b/lib/docs/filters/grunt/clean_html.rb index f1ddf5e9..fc382038 100644 --- a/lib/docs/filters/grunt/clean_html.rb +++ b/lib/docs/filters/grunt/clean_html.rb @@ -19,6 +19,7 @@ module Docs # Remove code highlighting css('pre').each do |node| node.content = node.content + node['data-language'] = 'javascript' end doc diff --git a/lib/docs/scrapers/grunt.rb b/lib/docs/scrapers/grunt.rb index bd6c98f5..764f6d8f 100644 --- a/lib/docs/scrapers/grunt.rb +++ b/lib/docs/scrapers/grunt.rb @@ -3,7 +3,7 @@ module Docs self.name = 'Grunt' self.type = 'grunt' self.release = '1.0.1' - self.base_url = 'http://gruntjs.com/' + self.base_url = 'https://gruntjs.com/' self.root_path = 'getting-started' self.initial_paths = %w(api/grunt)