History

Remove unused code in Sequelize's clean_html filter

Also fix it's --> its in code comments

Waldir Pimenta committed 7 years ago

Commit bf160811 parent 58c44bf1 file · +2 −7Browse files

Unified · Split

lib/docs/filters/sequelize/clean_html.rb+2−7
@@ -18,11 +18,11 @@ module Docs · 17 unmodified lines
1818 # Remove image cards pointing to entries of the manual
1919 css('.manual-cards').remove
2020
21− # Pull the header out of it's container
21+ # Pull the header out of its container
2222 header = at_css('h1')
2323 header.parent.parent.parent.add_previous_sibling header
2424 else
25− # Pull the header out of it's container
25+ # Pull the header out of its container
2626 header = at_css('h1')
2727 header.parent.add_previous_sibling header
2828 end
@@ -46,11 +46,6 @@ module Docs · 17 unmodified lines
4646 pre['data-language'] = 'typescript' if node['class'] == 'lang-ts'
4747 end
4848
49− # Add syntax highlighting to source files
50− css('pre.raw-source-code').each do |node|
51− node['data-language'] = 'javascript'
52− end
53−
5449 # Return the cleaned-up document
5550 doc
5651 end