Add ParseCfEmail filter to the default stack used by all scrapers

pull/775/head
Thibaut Courouble 7 years ago
parent 608853bd2e
commit c7a10efe5b

@ -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'

@ -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

@ -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/'

@ -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'

@ -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'

@ -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'

@ -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)

@ -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

Loading…
Cancel
Save