瀏覽代碼

fix images in C/C++ docs

adjusting the html_filter to work with the new URIs
ClasherKasten 2 年之前
父節點
當前提交
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