Skip to content

Commit 9d54736

Browse files
authored
Merge pull request #2018 from ClasherKasten/fix/missing-images-in-c_pp
2 parents a757d41 + 334606e commit 9d54736

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/docs/filters/cppref/clean_html.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def call
106106
end
107107

108108
css('img').each do |node|
109-
node['src'] = node['src'].sub! %r{http://en.cppreference.com/common/([^"']+?)\.svg}, 'http://upload.cppreference.com/mwiki/\1.svg'
109+
node['src'] = node['src'].sub! %r{https://upload.cppreference.com/mwiki/(images/[^"']+?)}, 'http://upload.cppreference.com/mwiki/\1'
110110
end
111111

112112
# temporary solution due lack of mathjax/mathml support

lib/docs/scrapers/cppref/c.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ class C < Cppref
33
self.name = 'C'
44
self.slug = 'c'
55
self.base_url = 'https://en.cppreference.com/w/c/'
6-
# release = '2022-09-06'
6+
# release = '2023-03-24'
77

88
html_filters.insert_before 'cppref/clean_html', 'c/entries'
99

lib/docs/scrapers/cppref/cpp.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ class Cpp < Cppref
33
self.name = 'C++'
44
self.slug = 'cpp'
55
self.base_url = 'https://en.cppreference.com/w/cpp/'
6-
# release = '2022-09-06'
6+
# release = '2023-03-24'
77

88
html_filters.insert_before 'cppref/clean_html', 'cpp/entries'
99

0 commit comments

Comments
 (0)