Unified · Split
| @@ -0,0 +1,12 @@ | |||
| 1 | module Docs | ||
| 2 | class Gcc | ||
| 3 | class CleanHtmlFilter < Filter | ||
| 4 | def call | ||
| 5 | css('pre').each do |node| | ||
| 6 | node['data-language'] = 'cpp' | ||
| 7 | end | ||
| 8 | doc | ||
| 9 | end | ||
| 10 | end | ||
| 11 | end | ||
| 12 | end | ||
| @@ -6,7 +6,7 @@ module Docs · 5 unmodified lines | |||
| 6 | home: 'https://gcc.gnu.org/' | 6 | home: 'https://gcc.gnu.org/' |
| 7 | } | 7 | } |
| 8 | 8 | ||
| 9 | html_filters.push 'title' | 9 | html_filters.push 'gcc/clean_html', 'title' |
| 10 | 10 | ||
| 11 | options[:root_title] = false | 11 | options[:root_title] = false |
| 12 | options[:title] = false | 12 | options[:title] = false |