gcc: enable syntax highlighting

pull/1070/head
Simon Legner 6 years ago
parent d39f0dcd1c
commit 651f20a8f9

@ -0,0 +1,12 @@
module Docs
class Gcc
class CleanHtmlFilter < Filter
def call
css('pre').each do |node|
node['data-language'] = 'cpp'
end
doc
end
end
end
end

@ -6,7 +6,7 @@ module Docs
home: 'https://gcc.gnu.org/'
}
html_filters.push 'title'
html_filters.push 'gcc/clean_html', 'title'
options[:root_title] = false
options[:title] = false

Loading…
Cancel
Save