| @@ -7,27 +7,35 @@ module Docs · 6 unmodified lines |
| 7 | 7 | home: 'https://htmx.org/', |
| 8 | 8 | code: 'https://github.com/bigskysoftware/htmx' |
| 9 | 9 | } |
| 10 | | − self.release = '1.9.10' |
| 11 | | − self.base_url = "https://htmx.org/" |
| 12 | 10 | self.initial_paths = %w(reference/) |
| 13 | 11 | |
| 14 | 12 | html_filters.push 'htmx/entries', 'htmx/clean_html' |
| 15 | 13 | |
| 16 | 14 | options[:trailing_slash] = true |
| 17 | | − options[:container] = '.content' |
| 15 | + options[:container] = '.content' |
| 18 | 16 | options[:download_images] = false |
| 19 | 17 | options[:skip_patterns] = [ |
| 20 | | − /\Aessays/, |
| 21 | | − /\Aexamples/, |
| 22 | | − /\Amigration-guide/, |
| 23 | | − /\Aposts/, |
| 24 | | − ] |
| 18 | + /\Aessays/, |
| 19 | + /\Aexamples/, |
| 20 | + /\Amigration-guide/, |
| 21 | + /\Aposts/, |
| 22 | + ] |
| 25 | 23 | |
| 26 | | − # https://github.com/bigskysoftware/htmx/blob/master/LICENSE |
| 24 | + # https://github.com/bigskysoftware/htmx/blob/master/LICENSE |
| 27 | 25 | options[:attribution] = <<-HTML |
| 28 | | − Licensed under the Zero-Clause BSD License. |
| 26 | + Licensed under the Zero-Clause BSD License. |
| 29 | 27 | HTML |
| 30 | 28 | |
| 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 | + |
| 31 | 39 | def get_latest_version(opts) |
| 32 | 40 | get_npm_version('htmx.org', opts) |
| 33 | 41 | end |