Also fix it's --> its in code comments
Unified · Split
| @@ -18,11 +18,11 @@ module Docs · 17 unmodified lines | |||
| 18 | # Remove image cards pointing to entries of the manual | 18 | # Remove image cards pointing to entries of the manual |
| 19 | css('.manual-cards').remove | 19 | css('.manual-cards').remove |
| 20 | 20 | ||
| 21 | # Pull the header out of it's container | 21 | # Pull the header out of its container |
| 22 | header = at_css('h1') | 22 | header = at_css('h1') |
| 23 | header.parent.parent.parent.add_previous_sibling header | 23 | header.parent.parent.parent.add_previous_sibling header |
| 24 | else | 24 | else |
| 25 | # Pull the header out of it's container | 25 | # Pull the header out of its container |
| 26 | header = at_css('h1') | 26 | header = at_css('h1') |
| 27 | header.parent.add_previous_sibling header | 27 | header.parent.add_previous_sibling header |
| 28 | end | 28 | end |
| @@ -46,11 +46,6 @@ module Docs · 17 unmodified lines | |||
| 46 | pre['data-language'] = 'typescript' if node['class'] == 'lang-ts' | 46 | pre['data-language'] = 'typescript' if node['class'] == 'lang-ts' |
| 47 | end | 47 | end |
| 48 | 48 | ||
| 49 | # Add syntax highlighting to source files | ||
| 50 | css('pre.raw-source-code').each do |node| | ||
| 51 | node['data-language'] = 'javascript' | ||
| 52 | end | ||
| 53 | |||
| 54 | # Return the cleaned-up document | 49 | # Return the cleaned-up document |
| 55 | doc | 50 | doc |
| 56 | end | 51 | end |