History

home_url must be applied after inner_html

Thu Trang Pham committed 11 years ago

Commit ab85da31 parent 642c1cf1 file · +2 −2Browse files

Unified · Split

lib/docs/core/scraper.rb+2−2
@@ -34,7 +34,7 @@ module Docs · 33 unmodified lines
3434 self.text_filters = FilterStack.new
3535
3636 html_filters.push 'container', 'clean_html', 'normalize_urls', 'internal_urls', 'normalize_paths'
37− text_filters.push 'home_url', 'inner_html', 'clean_text', 'attribution'
37+ text_filters.push 'inner_html', 'clean_text', 'home_url', 'attribution'
3838
3939 def build_page(path)
4040 response = request_one url_for(path)
@@ -66,7 +66,7 @@ module Docs · 25 unmodified lines
6666 end
6767
6868 def home_url
69− @home_url ||= URL.parse self.class.home_url if self.class.home_url
69+ @home_url ||= self.class.home_url
7070 end
7171
7272 def root_path