[devdocsgjs/main: 448/1867] Fix images
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 448/1867] Fix images
- Date: Fri, 19 Nov 2021 23:47:15 +0000 (UTC)
commit 8223081e707d3b26bf494a8c6f36cedd5b50cd88
Author: Jasper van Merle <jaspervmerle gmail com>
Date: Sun Oct 21 17:58:50 2018 +0200
Fix images
lib/docs/filters/mariadb/clean_html.rb | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/lib/docs/filters/mariadb/clean_html.rb b/lib/docs/filters/mariadb/clean_html.rb
index ffbbb160..88ab4fc5 100644
--- a/lib/docs/filters/mariadb/clean_html.rb
+++ b/lib/docs/filters/mariadb/clean_html.rb
@@ -34,6 +34,11 @@ module Docs
end
end
+ # Fix images
+ css('img').each do |node|
+ node['src'] = node['src'].sub('http:', 'https:')
+ end
+
# Remove navigation items containing only numbers
css('.node_comments').each do |node|
if node.content.scan(/\D/).empty?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]