Merge pull request #2018 from ClasherKasten/fix/missing-images-in-c_pp

pull/2020/head
Simon Legner 2 years ago committed by GitHub
commit 9d5473679c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -106,7 +106,7 @@ module Docs
end end
css('img').each do |node| 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 end
# temporary solution due lack of mathjax/mathml support # temporary solution due lack of mathjax/mathml support

@ -3,7 +3,7 @@ module Docs
self.name = 'C' self.name = 'C'
self.slug = 'c' self.slug = 'c'
self.base_url = 'https://en.cppreference.com/w/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' html_filters.insert_before 'cppref/clean_html', 'c/entries'

@ -3,7 +3,7 @@ module Docs
self.name = 'C++' self.name = 'C++'
self.slug = 'cpp' self.slug = 'cpp'
self.base_url = 'https://en.cppreference.com/w/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' html_filters.insert_before 'cppref/clean_html', 'cpp/entries'

Loading…
Cancel
Save