mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
608 B
18 lines
608 B
module Docs
|
|
class DomEvents < Mdn
|
|
self.name = 'DOM Events'
|
|
self.slug = 'dom_events'
|
|
self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/Reference/Events'
|
|
|
|
html_filters.insert_after 'clean_html', 'dom_events/clean_html'
|
|
html_filters.push 'dom_events/entries', 'title'
|
|
|
|
options[:root_title] = 'DOM Events'
|
|
options[:fix_urls] = ->(url) do
|
|
url.sub! 'https://developer.mozilla.org/en-US/Mozilla_event_reference', DomEvents.base_url
|
|
url.sub! 'https://developer.mozilla.org/en-US/docs/Mozilla_event_reference', DomEvents.base_url
|
|
url
|
|
end
|
|
end
|
|
end
|