|
|
@ -2,7 +2,7 @@ module Docs
|
|
|
|
class Wordpress < UrlScraper
|
|
|
|
class Wordpress < UrlScraper
|
|
|
|
self.name = 'WordPress'
|
|
|
|
self.name = 'WordPress'
|
|
|
|
self.type = 'wordpress'
|
|
|
|
self.type = 'wordpress'
|
|
|
|
self.release = '6.1'
|
|
|
|
self.release = '6.7'
|
|
|
|
self.base_url = 'https://developer.wordpress.org/reference/'
|
|
|
|
self.base_url = 'https://developer.wordpress.org/reference/'
|
|
|
|
self.initial_paths = %w(
|
|
|
|
self.initial_paths = %w(
|
|
|
|
functions/
|
|
|
|
functions/
|
|
|
@ -17,7 +17,7 @@ module Docs
|
|
|
|
|
|
|
|
|
|
|
|
html_filters.push 'wordpress/entries', 'wordpress/clean_html'
|
|
|
|
html_filters.push 'wordpress/entries', 'wordpress/clean_html'
|
|
|
|
|
|
|
|
|
|
|
|
options[:container] = '#content-area'
|
|
|
|
options[:container] = 'main'
|
|
|
|
options[:trailing_slash] = false
|
|
|
|
options[:trailing_slash] = false
|
|
|
|
options[:only_patterns] = [
|
|
|
|
options[:only_patterns] = [
|
|
|
|
/\Afunctions\//,
|
|
|
|
/\Afunctions\//,
|
|
|
@ -32,7 +32,7 @@ module Docs
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
© 2003–2022 WordPress Foundation<br>
|
|
|
|
© 2003–2024 WordPress Foundation<br>
|
|
|
|
Licensed under the GNU GPLv2+ License.
|
|
|
|
Licensed under the GNU GPLv2+ License.
|
|
|
|
HTML
|
|
|
|
HTML
|
|
|
|
|
|
|
|
|
|
|
|