Unified · Split
| @@ -15,7 +15,6 @@ class app.views.JavascriptWithMarkupCheckPage extends app.views.BasePage · 14 unmodified lines | |||
| 15 | @highlightCode el, language | 15 | @highlightCode el, language |
| 16 | return | 16 | return |
| 17 | 17 | ||
| 18 | app.views.ChaiPage = | ||
| 19 | app.views.GruntPage = | 18 | app.views.GruntPage = |
| 20 | app.views.MochaPage = | 19 | app.views.MochaPage = |
| 21 | app.views.JavascriptPage | 20 | app.views.JavascriptPage |
| @@ -9,6 +9,7 @@ class app.views.SimplePage extends app.views.BasePage · 8 unmodified lines | |||
| 9 | app.views.AngularPage = | 9 | app.views.AngularPage = |
| 10 | app.views.AngularjsPage = | 10 | app.views.AngularjsPage = |
| 11 | app.views.CakephpPage = | 11 | app.views.CakephpPage = |
| 12 | app.views.ChaiPage = | ||
| 12 | app.views.ElixirPage = | 13 | app.views.ElixirPage = |
| 13 | app.views.EmberPage = | 14 | app.views.EmberPage = |
| 14 | app.views.ExpressPage = | 15 | app.views.ExpressPage = |
| @@ -37,7 +37,6 @@ · 36 unmodified lines | |||
| 37 | 'pages/bower', | 37 | 'pages/bower', |
| 38 | 'pages/c', | 38 | 'pages/c', |
| 39 | 'pages/cakephp', | 39 | 'pages/cakephp', |
| 40 | 'pages/chai', | ||
| 41 | 'pages/clojure', | 40 | 'pages/clojure', |
| 42 | 'pages/coffeescript', | 41 | 'pages/coffeescript', |
| 43 | 'pages/d3', | 42 | 'pages/d3', |
| @@ -37,7 +37,6 @@ · 36 unmodified lines | |||
| 37 | 'pages/bower', | 37 | 'pages/bower', |
| 38 | 'pages/c', | 38 | 'pages/c', |
| 39 | 'pages/cakephp', | 39 | 'pages/cakephp', |
| 40 | 'pages/chai', | ||
| 41 | 'pages/clojure', | 40 | 'pages/clojure', |
| 42 | 'pages/coffeescript', | 41 | 'pages/coffeescript', |
| 43 | 'pages/d3', | 42 | 'pages/d3', |
| @@ -1,5 +0,0 @@ | |||
| 1 | ._chai { | ||
| 2 | @extend %simple; | ||
| 3 | |||
| 4 | li.tag span { margin-right: 5px; } | ||
| 5 | } | ||
| @@ -17,6 +17,7 @@ · 16 unmodified lines | |||
| 17 | } | 17 | } |
| 18 | 18 | ||
| 19 | ._apache_pig, | 19 | ._apache_pig, |
| 20 | ._chai, | ||
| 20 | ._cordova, | 21 | ._cordova, |
| 21 | ._gnu, | 22 | ._gnu, |
| 22 | ._grunt, | 23 | ._grunt, |
| @@ -2,7 +2,7 @@ module Docs · 1 unmodified line | |||
| 2 | class Chai | 2 | class Chai |
| 3 | class CleanHtmlFilter < Filter | 3 | class CleanHtmlFilter < Filter |
| 4 | def call | 4 | def call |
| 5 | @doc = at_css('.documentation .rendered') | 5 | @doc = at_css('.documentation .rendered') if at_css('.documentation .rendered') |
| 6 | 6 | ||
| 7 | if root_page? | 7 | if root_page? |
| 8 | at_css('h1').content = 'Chai Assertion Library' | 8 | at_css('h1').content = 'Chai Assertion Library' |
| @@ -12,9 +12,9 @@ module Docs · 3 unmodified lines | |||
| 12 | node.before(node.children).remove | 12 | node.before(node.children).remove |
| 13 | end | 13 | end |
| 14 | 14 | ||
| 15 | # Remove code highlighting | ||
| 16 | css('pre').each do |node| | 15 | css('pre').each do |node| |
| 17 | node.content = node.content | 16 | node.content = node.content |
| 17 | node['data-language'] = 'javascript' | ||
| 18 | end | 18 | end |
| 19 | 19 | ||
| 20 | doc | 20 | doc |
| @@ -6,12 +6,12 @@ module Docs · 5 unmodified lines | |||
| 6 | end | 6 | end |
| 7 | 7 | ||
| 8 | def get_type | 8 | def get_type |
| 9 | subpath.start_with?('/guide') ? 'Guides' : nil | 9 | subpath.start_with?('/guide') ? 'Guides' : name |
| 10 | end | 10 | end |
| 11 | 11 | ||
| 12 | def additional_entries | 12 | def additional_entries |
| 13 | css('.antiscroll-inner a').each_with_object [] do |node, entries| | 13 | css('.antiscroll-inner a').each_with_object [] do |node, entries| |
| 14 | id = node['href'].remove('#') + '-section' | 14 | id = node['href'].remove('#') |
| 15 | node.content.strip.split(' / ').uniq { |name| name.downcase }.each do |name| | 15 | node.content.strip.split(' / ').uniq { |name| name.downcase }.each do |name| |
| 16 | entries << [name, id, self.name] | 16 | entries << [name, id, self.name] |
| 17 | end | 17 | end |