Skip to content

Commit 2a24012

Browse files
committed
Update htmx documentation (2.0.7)
1 parent 68b412d commit 2a24012

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

lib/docs/filters/htmx/clean_html.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ module Docs
22
class Htmx
33
class CleanHtmlFilter < Filter
44
def call
5+
css('.ad').remove
56
css('.zola-anchor').remove
67
doc.prepend_child("<h1>htmx</h1>") if root_page?
78
css('div:contains("NEWS:")').remove

lib/docs/scrapers/htmx.rb

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,35 @@ class Htmx < UrlScraper
77
home: 'https://htmx.org/',
88
code: 'https://github.com/bigskysoftware/htmx'
99
}
10-
self.release = '1.9.10'
11-
self.base_url = "https://htmx.org/"
1210
self.initial_paths = %w(reference/)
1311

1412
html_filters.push 'htmx/entries', 'htmx/clean_html'
1513

1614
options[:trailing_slash] = true
17-
options[:container] = '.content'
15+
options[:container] = '.content'
1816
options[:download_images] = false
1917
options[:skip_patterns] = [
20-
/\Aessays/,
21-
/\Aexamples/,
22-
/\Amigration-guide/,
23-
/\Aposts/,
24-
]
18+
/\Aessays/,
19+
/\Aexamples/,
20+
/\Amigration-guide/,
21+
/\Aposts/,
22+
]
2523

26-
# https://github.com/bigskysoftware/htmx/blob/master/LICENSE
24+
# https://github.com/bigskysoftware/htmx/blob/master/LICENSE
2725
options[:attribution] = <<-HTML
28-
Licensed under the Zero-Clause BSD License.
26+
Licensed under the Zero-Clause BSD License.
2927
HTML
3028

29+
version do
30+
self.release = '2.0.7'
31+
self.base_url = "https://htmx.org/"
32+
end
33+
34+
version '1' do
35+
self.release = '1.9.12'
36+
self.base_url = "https://v1.htmx.org/"
37+
end
38+
3139
def get_latest_version(opts)
3240
get_npm_version('htmx.org', opts)
3341
end

0 commit comments

Comments
 (0)