Просмотр исходного кода

fix images in C/C++ docs

adjusting the html_filter to work with the new URIs
ClasherKasten 2 лет назад
Родитель
Сommit
503bfecea6
1 измененных файлов с 1 добавлено и 1 удалено
  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