Unified · Split
| @@ -1,10 +1,5 @@ | |||
| 1 | #= require views/pages/base | 1 | #= require views/pages/base |
| 2 | 2 | ||
| 3 | class app.views.JavascriptPage extends app.views.BasePage | ||
| 4 | prepare: -> | ||
| 5 | @highlightCode @findAllByTag('pre'), 'javascript' | ||
| 6 | return | ||
| 7 | |||
| 8 | class app.views.JavascriptWithMarkupCheckPage extends app.views.BasePage | 3 | class 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, language | 10 | @highlightCode el, language |
| 16 | return | 11 | return |
| 17 | 12 | ||
| 18 | app.views.GruntPage = | ||
| 19 | app.views.JavascriptPage | ||
| 20 | |||
| 21 | app.views.DojoPage = | 13 | app.views.DojoPage = |
| 22 | app.views.RequirejsPage = | 14 | app.views.RequirejsPage = |
| 23 | app.views.JavascriptWithMarkupCheckPage | 15 | app.views.JavascriptWithMarkupCheckPage |
| @@ -30,6 +30,7 @@ app.views.ExpressPage = · 29 unmodified lines | |||
| 30 | app.views.FlowPage = | 30 | app.views.FlowPage = |
| 31 | app.views.GithubPage = | 31 | app.views.GithubPage = |
| 32 | app.views.GoPage = | 32 | app.views.GoPage = |
| 33 | app.views.GruntPage = | ||
| 33 | app.views.ImmutablePage = | 34 | app.views.ImmutablePage = |
| 34 | app.views.InfluxdataPage = | 35 | app.views.InfluxdataPage = |
| 35 | app.views.JasminePage = | 36 | app.views.JasminePage = |
| @@ -19,6 +19,7 @@ module Docs · 18 unmodified lines | |||
| 19 | # Remove code highlighting | 19 | # Remove code highlighting |
| 20 | css('pre').each do |node| | 20 | css('pre').each do |node| |
| 21 | node.content = node.content | 21 | node.content = node.content |
| 22 | node['data-language'] = 'javascript' | ||
| 22 | end | 23 | end |
| 23 | 24 | ||
| 24 | doc | 25 | doc |
| @@ -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 | ||