From 966c35767552cce18619a1a20b21a681b1dac556 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Thu, 15 Apr 2021 21:26:26 +0200 Subject: [PATCH] mdn: remove obsolete options[:mdn_tag] --- lib/docs/scrapers/http.rb | 2 -- lib/docs/scrapers/mdn/css.rb | 2 -- lib/docs/scrapers/mdn/dom.rb | 2 -- lib/docs/scrapers/mdn/dom_events.rb | 2 -- lib/docs/scrapers/mdn/html.rb | 2 -- lib/docs/scrapers/mdn/javascript.rb | 2 -- lib/docs/scrapers/mdn/svg.rb | 2 -- lib/docs/scrapers/mdn/xslt_xpath.rb | 2 -- 8 files changed, 16 deletions(-) diff --git a/lib/docs/scrapers/http.rb b/lib/docs/scrapers/http.rb index ab9f1407..9d989c6a 100644 --- a/lib/docs/scrapers/http.rb +++ b/lib/docs/scrapers/http.rb @@ -7,8 +7,6 @@ module Docs html_filters.push 'http/clean_html', 'http/entries', 'title' - options[:mdn_tag] = 'HTTP' - options[:root_title] = 'HTTP' options[:title] = ->(filter) { filter.current_url.host == 'tools.ietf.org' ? false : filter.default_title } options[:container] = ->(filter) { filter.current_url.host == 'tools.ietf.org' ? '.content' : nil } diff --git a/lib/docs/scrapers/mdn/css.rb b/lib/docs/scrapers/mdn/css.rb index abb69b3a..4c44f1f1 100644 --- a/lib/docs/scrapers/mdn/css.rb +++ b/lib/docs/scrapers/mdn/css.rb @@ -6,8 +6,6 @@ module Docs html_filters.push 'css/clean_html', 'css/entries', 'title' - options[:mdn_tag] = 'CSS' - options[:root_title] = 'CSS' options[:skip] = %w(/CSS3 /Media/Visual /paged_media /Media/TV /Media/Tactile) diff --git a/lib/docs/scrapers/mdn/dom.rb b/lib/docs/scrapers/mdn/dom.rb index a2202929..bbf95b20 100644 --- a/lib/docs/scrapers/mdn/dom.rb +++ b/lib/docs/scrapers/mdn/dom.rb @@ -8,8 +8,6 @@ module Docs html_filters.push 'dom/clean_html', 'dom/entries', 'title' - options[:mdn_tag] = 'XSLT_Reference' - options[:root_title] = 'DOM' options[:skip] = %w( diff --git a/lib/docs/scrapers/mdn/dom_events.rb b/lib/docs/scrapers/mdn/dom_events.rb index 258fbcd4..fcbdc08f 100644 --- a/lib/docs/scrapers/mdn/dom_events.rb +++ b/lib/docs/scrapers/mdn/dom_events.rb @@ -9,8 +9,6 @@ module Docs html_filters.insert_after 'clean_html', 'dom_events/clean_html' html_filters.push 'dom_events/entries', 'title' - options[:mdn_tag] = 'events' - options[:root_title] = 'DOM Events' options[:skip] = %w(/MozOrientation) diff --git a/lib/docs/scrapers/mdn/html.rb b/lib/docs/scrapers/mdn/html.rb index f38432f1..4b28cefd 100644 --- a/lib/docs/scrapers/mdn/html.rb +++ b/lib/docs/scrapers/mdn/html.rb @@ -7,8 +7,6 @@ module Docs html_filters.push 'html/clean_html', 'html/entries', 'title' - options[:mdn_tag] = 'HTML' - options[:root_title] = 'HTML' options[:title] = ->(filter) do diff --git a/lib/docs/scrapers/mdn/javascript.rb b/lib/docs/scrapers/mdn/javascript.rb index cea55fc8..935df61c 100644 --- a/lib/docs/scrapers/mdn/javascript.rb +++ b/lib/docs/scrapers/mdn/javascript.rb @@ -8,8 +8,6 @@ module Docs html_filters.push 'javascript/clean_html', 'javascript/entries', 'title' - options[:mdn_tag] = 'JavaScript' - options[:root_title] = 'JavaScript' # Don't want diff --git a/lib/docs/scrapers/mdn/svg.rb b/lib/docs/scrapers/mdn/svg.rb index 66baf60d..db9de7a1 100644 --- a/lib/docs/scrapers/mdn/svg.rb +++ b/lib/docs/scrapers/mdn/svg.rb @@ -8,8 +8,6 @@ module Docs html_filters.push 'svg/clean_html', 'svg/entries', 'title' - options[:mdn_tag] = 'XSLT_Reference' - options[:root_title] = 'SVG' options[:title] = ->(filter) do diff --git a/lib/docs/scrapers/mdn/xslt_xpath.rb b/lib/docs/scrapers/mdn/xslt_xpath.rb index 359eb755..2407f0c0 100644 --- a/lib/docs/scrapers/mdn/xslt_xpath.rb +++ b/lib/docs/scrapers/mdn/xslt_xpath.rb @@ -8,8 +8,6 @@ module Docs html_filters.push 'xslt_xpath/clean_html', 'xslt_xpath/entries', 'title' - options[:mdn_tag] = 'XSLT_Reference' - options[:root_title] = 'XSLT' options[:only_patterns] = [/\A\/XSLT/, /\A\/XPath/]