diff --git a/lib/docs/core/scraper.rb b/lib/docs/core/scraper.rb index 34f1f55b..083b0015 100644 --- a/lib/docs/core/scraper.rb +++ b/lib/docs/core/scraper.rb @@ -41,7 +41,7 @@ module Docs self.html_filters = FilterStack.new self.text_filters = FilterStack.new - html_filters.push 'apply_base_url', 'container', 'clean_html', 'normalize_urls', 'internal_urls', 'normalize_paths' + html_filters.push 'apply_base_url', 'container', 'clean_html', 'normalize_urls', 'internal_urls', 'normalize_paths', 'parse_cf_email' text_filters.push 'images' # ensure the images filter runs after all html filters text_filters.push 'inner_html', 'clean_text', 'attribution' diff --git a/lib/docs/scrapers/ansible.rb b/lib/docs/scrapers/ansible.rb index 600178f4..cb66b84d 100644 --- a/lib/docs/scrapers/ansible.rb +++ b/lib/docs/scrapers/ansible.rb @@ -7,7 +7,7 @@ module Docs code: 'https://github.com/ansible/ansible' } - html_filters.push 'ansible/entries', 'sphinx/clean_html', 'parse_cf_email' + html_filters.push 'ansible/entries', 'sphinx/clean_html' options[:skip] = %w( glossary.html diff --git a/lib/docs/scrapers/bootstrap.rb b/lib/docs/scrapers/bootstrap.rb index ca0aa731..859998a9 100644 --- a/lib/docs/scrapers/bootstrap.rb +++ b/lib/docs/scrapers/bootstrap.rb @@ -15,8 +15,6 @@ module Docs Documentation licensed under the Creative Commons Attribution License v3.0. HTML - html_filters.push 'parse_cf_email' - version '4' do self.release = '4.0.0' self.base_url = 'https://getbootstrap.com/docs/4.0/' diff --git a/lib/docs/scrapers/flow.rb b/lib/docs/scrapers/flow.rb index b82e51f0..cbf95f5c 100644 --- a/lib/docs/scrapers/flow.rb +++ b/lib/docs/scrapers/flow.rb @@ -8,7 +8,7 @@ module Docs code: 'https://github.com/facebook/flow' } - html_filters.push 'flow/entries', 'flow/clean_html', 'title', 'parse_cf_email' + html_filters.push 'flow/entries', 'flow/clean_html', 'title' options[:trailing_slash] = false options[:root_title] = 'Flow' diff --git a/lib/docs/scrapers/laravel.rb b/lib/docs/scrapers/laravel.rb index 4678ae66..5bbc299a 100644 --- a/lib/docs/scrapers/laravel.rb +++ b/lib/docs/scrapers/laravel.rb @@ -7,7 +7,7 @@ module Docs code: 'https://github.com/laravel/laravel' } - html_filters.push 'laravel/entries', 'laravel/clean_html', 'parse_cf_email' + html_filters.push 'laravel/entries', 'laravel/clean_html' options[:container] = ->(filter) { filter.subpath.start_with?('/api') ? '#content' : '.docs-wrapper' diff --git a/lib/docs/scrapers/node.rb b/lib/docs/scrapers/node.rb index ba987465..fdaf23d2 100644 --- a/lib/docs/scrapers/node.rb +++ b/lib/docs/scrapers/node.rb @@ -8,7 +8,7 @@ module Docs code: 'https://github.com/nodejs/node' } - html_filters.push 'node/clean_html', 'node/entries', 'title', 'parse_cf_email' + html_filters.push 'node/clean_html', 'node/entries', 'title' options[:title] = false options[:root_title] = 'Node.js' diff --git a/lib/docs/scrapers/vue.rb b/lib/docs/scrapers/vue.rb index acaeb65d..e8e29406 100644 --- a/lib/docs/scrapers/vue.rb +++ b/lib/docs/scrapers/vue.rb @@ -8,7 +8,7 @@ module Docs code: 'https://github.com/vuejs/vue' } - html_filters.push 'vue/entries', 'vue/clean_html', 'parse_cf_email' + html_filters.push 'vue/entries', 'vue/clean_html' options[:only_patterns] = [/guide\//, /api\//] options[:skip] = %w(guide/team.html) diff --git a/lib/docs/scrapers/yarn.rb b/lib/docs/scrapers/yarn.rb index 230d2871..8c41dd8c 100644 --- a/lib/docs/scrapers/yarn.rb +++ b/lib/docs/scrapers/yarn.rb @@ -8,7 +8,7 @@ module Docs code: 'https://github.com/yarnpkg/yarn' } - html_filters.push 'yarn/entries', 'yarn/clean_html', 'title', 'parse_cf_email' + html_filters.push 'yarn/entries', 'yarn/clean_html', 'title' options[:root_title] = 'Yarn' options[:trailing_slash] = false