[devdocsgjs/main: 968/1867] Remove unused code in Sequelize's clean_html filter
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 968/1867] Remove unused code in Sequelize's clean_html filter
- Date: Fri, 19 Nov 2021 23:47:37 +0000 (UTC)
commit bf16081410ea8ca0ab33a614c90985832f2fa375
Author: Waldir Pimenta <waldyrious gmail com>
Date: Sat Oct 26 12:05:48 2019 +0100
Remove unused code in Sequelize's clean_html filter
Also fix it's --> its in code comments
lib/docs/filters/sequelize/clean_html.rb | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/lib/docs/filters/sequelize/clean_html.rb b/lib/docs/filters/sequelize/clean_html.rb
index 27c4d552..4f452198 100644
--- a/lib/docs/filters/sequelize/clean_html.rb
+++ b/lib/docs/filters/sequelize/clean_html.rb
@@ -18,11 +18,11 @@ module Docs
# Remove image cards pointing to entries of the manual
css('.manual-cards').remove
- # Pull the header out of it's container
+ # Pull the header out of its container
header = at_css('h1')
header.parent.parent.parent.add_previous_sibling header
else
- # Pull the header out of it's container
+ # Pull the header out of its container
header = at_css('h1')
header.parent.add_previous_sibling header
end
@@ -46,11 +46,6 @@ module Docs
pre['data-language'] = 'typescript' if node['class'] == 'lang-ts'
end
- # Add syntax highlighting to source files
- css('pre.raw-source-code').each do |node|
- node['data-language'] = 'javascript'
- end
-
# Return the cleaned-up document
doc
end
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]