Add nginx syntax highlighting

pull/359/merge
Thibaut Courouble 9 years ago
parent c5caeff917
commit ce1a04b41c

File diff suppressed because one or more lines are too long

@ -0,0 +1,6 @@
#= require views/pages/base
class app.views.NginxPage extends app.views.BasePage
prepare: ->
@highlightCode @findAllByTag('pre'), 'nginx'
return

@ -3,4 +3,5 @@
.note { @extend %note; }
.directive { margin: 2.5em 0 1em; }
td > pre { margin: 0; }
dt > code { @extend %label; }
}

@ -22,6 +22,10 @@ module Docs
at_css('h1 + table').replace("<ul><li>#{links.join('</li><li>')}</li></ul>")
end
css('td > pre').each do |node|
node.name = 'code'
end
doc
end
end

Loading…
Cancel
Save