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.
36 lines
827 B
36 lines
827 B
module Docs
|
|
class Htmx < UrlScraper
|
|
self.name = 'htmx'
|
|
self.type = 'simple'
|
|
self.slug = 'htmx'
|
|
self.links = {
|
|
home: 'https://htmx.org/',
|
|
code: 'https://github.com/bigskysoftware/htmx'
|
|
}
|
|
self.release = '1.9.10'
|
|
self.base_url = "https://htmx.org/"
|
|
self.initial_paths = %w(reference/)
|
|
|
|
html_filters.push 'htmx/entries', 'htmx/clean_html'
|
|
|
|
options[:trailing_slash] = true
|
|
options[:container] = '.content'
|
|
options[:download_images] = false
|
|
options[:skip_patterns] = [
|
|
/\Aessays/,
|
|
/\Aexamples/,
|
|
/\Amigration-guide/,
|
|
/\Aposts/,
|
|
]
|
|
|
|
# https://github.com/bigskysoftware/htmx/blob/master/LICENSE
|
|
options[:attribution] = <<-HTML
|
|
Licensed under the Zero-Clause BSD
|
|
HTML
|
|
|
|
def get_latest_version(opts)
|
|
get_npm_version('htmx.org', opts)
|
|
end
|
|
end
|
|
end
|