mirror of https://github.com/freeCodeCamp/devdocs
17 lines
450 B
17 lines
450 B
module Docs
|
|
class Xpath < Mdn
|
|
self.name = 'XPath'
|
|
self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/XPath'
|
|
|
|
html_filters.push 'xpath/clean_html', 'xpath/entries', 'title'
|
|
|
|
options[:root_title] = 'XPath'
|
|
|
|
options[:fix_urls] = ->(url) do
|
|
url.sub! 'https://developer.mozilla.org/en/XPath', Xpath.base_url
|
|
url.sub! 'https://developer.mozilla.org/en-US/docs/XPath', Xpath.base_url
|
|
url
|
|
end
|
|
end
|
|
end
|