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
18 # Remove image cards pointing to entries of the manual18 # Remove image cards pointing to entries of the manual
19 css('.manual-cards').remove19 css('.manual-cards').remove
20 20
21 # Pull the header out of it's container21 # 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 header23 header.parent.parent.parent.add_previous_sibling header
24 else24 else
25 # Pull the header out of it's container25 # Pull the header out of its container
26 header = at_css('h1')26 header = at_css('h1')
27 header.parent.add_previous_sibling header27 header.parent.add_previous_sibling header
28 end28 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 end47 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 document49 # Return the cleaned-up document
55 doc50 doc
56 end51 end