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 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' 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'