Browse Source

fix images in C/C++ docs

adjusting the html_filter to work with the new URIs
ClasherKasten 2 years ago
parent
commit
503bfecea6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/docs/filters/cppref/clean_html.rb

+ 1 - 1
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