| @@ -8,49 +8,68 @@ module Docs · 7 unmodified lines |
| 8 | code: 'https://github.com/fish-shell/fish-shell' | 8 | code: 'https://github.com/fish-shell/fish-shell' |
| 9 | } | 9 | } |
| 10 | | 10 | |
| 11 | html_filters.push 'fish/clean_html', 'fish/entries' | | |
| 12 | | | |
| 13 | options[:skip] = %w(design.html license.html) | 11 | options[:skip] = %w(design.html license.html) |
| 14 | | 12 | |
| 15 | # https://fishshell.com/docs/current/license.html | 13 | # https://fishshell.com/docs/current/license.html |
| 16 | options[:attribution] = <<-HTML | 14 | options[:attribution] = <<-HTML |
| 17 | © 2005–2009 Axel Liljencrantz<br> | 15 | © 2019 fish-shell developers<br> |
| 18 | Licensed under the GNU General Public License, version 2. | 16 | Licensed under the GNU General Public License, version 2. |
| 19 | HTML | 17 | HTML |
| 20 | | 18 | |
| | 19 | version '3.1' do |
| | 20 | self.release = '3.1.2' |
| | 21 | self.base_url = "https://fishshell.com/docs/#{version}/" |
| | 22 | |
| | 23 | html_filters.push 'sphinx/clean_html', 'fish/clean_html_sphinx', 'fish/entries_sphinx' |
| | 24 | end |
| | 25 | |
| 21 | version '3.0' do | 26 | version '3.0' do |
| 22 | self.release = '3.0.1' | 27 | self.release = '3.0.1' |
| 23 | self.base_url = "https://fishshell.com/docs/#{version}/" | 28 | self.base_url = "https://fishshell.com/docs/#{version}/" |
| | 29 | |
| | 30 | html_filters.push 'fish/clean_html_custom', 'fish/entries_custom' |
| 24 | end | 31 | end |
| 25 | | 32 | |
| 26 | version '2.7' do | 33 | version '2.7' do |
| 27 | self.release = '2.7.1' | 34 | self.release = '2.7.1' |
| 28 | self.base_url = "https://fishshell.com/docs/#{version}/" | 35 | self.base_url = "https://fishshell.com/docs/#{version}/" |
| | 36 | |
| | 37 | html_filters.push 'fish/clean_html_custom', 'fish/entries_custom' |
| 29 | end | 38 | end |
| 30 | | 39 | |
| 31 | version '2.6' do | 40 | version '2.6' do |
| 32 | self.release = '2.6.0' | 41 | self.release = '2.6.0' |
| 33 | self.base_url = "https://fishshell.com/docs/#{version}/" | 42 | self.base_url = "https://fishshell.com/docs/#{version}/" |
| | 43 | |
| | 44 | html_filters.push 'fish/clean_html_custom', 'fish/entries_custom' |
| 34 | end | 45 | end |
| 35 | | 46 | |
| 36 | version '2.5' do | 47 | version '2.5' do |
| 37 | self.release = '2.5.0' | 48 | self.release = '2.5.0' |
| 38 | self.base_url = "https://fishshell.com/docs/#{version}/" | 49 | self.base_url = "https://fishshell.com/docs/#{version}/" |
| | 50 | |
| | 51 | html_filters.push 'fish/clean_html_custom', 'fish/entries_custom' |
| 39 | end | 52 | end |
| 40 | | 53 | |
| 41 | version '2.4' do | 54 | version '2.4' do |
| 42 | self.release = '2.4.0' | 55 | self.release = '2.4.0' |
| 43 | self.base_url = "https://fishshell.com/docs/#{version}/" | 56 | self.base_url = "https://fishshell.com/docs/#{version}/" |
| | 57 | |
| | 58 | html_filters.push 'fish/clean_html_custom', 'fish/entries_custom' |
| 44 | end | 59 | end |
| 45 | | 60 | |
| 46 | version '2.3' do | 61 | version '2.3' do |
| 47 | self.release = '2.3.1' | 62 | self.release = '2.3.1' |
| 48 | self.base_url = "https://fishshell.com/docs/#{version}/" | 63 | self.base_url = "https://fishshell.com/docs/#{version}/" |
| | 64 | |
| | 65 | html_filters.push 'fish/clean_html_custom', 'fish/entries_custom' |
| 49 | end | 66 | end |
| 50 | | 67 | |
| 51 | version '2.2' do | 68 | version '2.2' do |
| 52 | self.release = '2.2.0' | 69 | self.release = '2.2.0' |
| 53 | self.base_url = "https://fishshell.com/docs/#{version}/" | 70 | self.base_url = "https://fishshell.com/docs/#{version}/" |
| | 71 | |
| | 72 | html_filters.push 'fish/clean_html_custom', 'fish/entries_custom' |
| 54 | end | 73 | end |
| 55 | | 74 | |
| 56 | def get_latest_version(opts) | 75 | def get_latest_version(opts) |