|
|
@ -6,15 +6,11 @@ module Docs
|
|
|
|
self.root_path = '/XSLT'
|
|
|
|
self.root_path = '/XSLT'
|
|
|
|
self.initial_paths = %w(/XPath)
|
|
|
|
self.initial_paths = %w(/XPath)
|
|
|
|
|
|
|
|
|
|
|
|
html_filters.push 'xslt_xpath/clean_html', 'xslt_xpath/entries', 'title'
|
|
|
|
html_filters.push 'xslt_xpath/clean_html', 'xslt_xpath/entries'
|
|
|
|
|
|
|
|
|
|
|
|
options[:root_title] = 'XSLT'
|
|
|
|
options[:root_title] = 'XSLT'
|
|
|
|
|
|
|
|
|
|
|
|
options[:only_patterns] = [/\A\/XSLT/, /\A\/XPath/]
|
|
|
|
options[:only_patterns] = [/\A\/XSLT/, /\A\/XPath/]
|
|
|
|
|
|
|
|
|
|
|
|
options[:fix_urls] = ->(url) do
|
|
|
|
|
|
|
|
url.sub! 'https://developer.mozilla.org/en-US/docs/Web/XSLT/Element', "#{XsltXpath.base_url}/XSLT"
|
|
|
|
|
|
|
|
url
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|