From 503bfecea6647fe65f6e269bb76cacce6cea99fa Mon Sep 17 00:00:00 2001 From: ClasherKasten Date: Wed, 26 Jul 2023 17:30:40 +0200 Subject: [PATCH 1/3] fix images in C/C++ docs adjusting the html_filter to work with the new URIs --- lib/docs/filters/cppref/clean_html.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/filters/cppref/clean_html.rb b/lib/docs/filters/cppref/clean_html.rb index 7c65c726..d7f564ff 100644 --- a/lib/docs/filters/cppref/clean_html.rb +++ b/lib/docs/filters/cppref/clean_html.rb @@ -106,7 +106,7 @@ module Docs end css('img').each do |node| - node['src'] = node['src'].sub! %r{http://en.cppreference.com/common/([^"']+?)\.svg}, 'http://upload.cppreference.com/mwiki/\1.svg' + node['src'] = node['src'].sub! %r{https://upload.cppreference.com/mwiki/(images/[^"']+?)}, 'http://upload.cppreference.com/mwiki/\1' end # temporary solution due lack of mathjax/mathml support From 4ecaccf0e4594062e14c7109a95864bf621162fd Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 26 Jul 2023 20:21:43 +0200 Subject: [PATCH 2/3] Update C documentation --- lib/docs/scrapers/cppref/c.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/scrapers/cppref/c.rb b/lib/docs/scrapers/cppref/c.rb index 1d460c41..77619c5d 100644 --- a/lib/docs/scrapers/cppref/c.rb +++ b/lib/docs/scrapers/cppref/c.rb @@ -3,7 +3,7 @@ module Docs self.name = 'C' self.slug = 'c' self.base_url = 'https://en.cppreference.com/w/c/' - # release = '2022-09-06' + # release = '2023-03-24' html_filters.insert_before 'cppref/clean_html', 'c/entries' From 334606eb5bd1fa3cf9ca39d65610b6ca80264f5e Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 26 Jul 2023 20:22:21 +0200 Subject: [PATCH 3/3] Update C++ documentation --- lib/docs/scrapers/cppref/cpp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/scrapers/cppref/cpp.rb b/lib/docs/scrapers/cppref/cpp.rb index 12fefe45..d6546180 100644 --- a/lib/docs/scrapers/cppref/cpp.rb +++ b/lib/docs/scrapers/cppref/cpp.rb @@ -3,7 +3,7 @@ module Docs self.name = 'C++' self.slug = 'cpp' self.base_url = 'https://en.cppreference.com/w/cpp/' - # release = '2022-09-06' + # release = '2023-03-24' html_filters.insert_before 'cppref/clean_html', 'cpp/entries'