Skip to content

Commit 29f6e1c

Browse files
committed
Update Fish documentation (4.0.1)
1 parent bad8f3e commit 29f6e1c

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

lib/docs/filters/fish/entries_sphinx.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def get_name
1414
end
1515

1616
def get_type
17-
if root_page? || slug == 'faq' || slug == 'completions' || slug == 'fish_for_bash_users'
17+
if root_page? || slug == 'faq' || slug == 'completions' || slug == 'fish_for_bash_users' || slug == 'prompt'
1818
'Manual'
1919
elsif slug.starts_with?('cmds') || slug == 'commands'
2020
'Commands'

lib/docs/scrapers/fish.rb

+10-2
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,22 @@ class Fish < UrlScraper
88
code: 'https://github.com/fish-shell/fish-shell'
99
}
1010

11-
options[:skip] = %w(design.html license.html)
11+
options[:skip] = %w(design.html license.html contributing.html)
1212

1313
# https://fishshell.com/docs/current/license.html
1414
options[:attribution] = <<-HTML
15-
&copy; 2005-2009 Axel Liljencrantz, 2009-2023 fish-shell contributors<br>
15+
&copy; 2005-2009 Axel Liljencrantz, 2009-2025 fish-shell contributors<br>
1616
Licensed under the GNU General Public License, version 2.
1717
HTML
1818

19+
version '4.0' do
20+
self.release = '4.0.1'
21+
self.base_url = "https://fishshell.com/docs/#{version}/"
22+
23+
options[:skip].concat %w(genindex.html relnotes.html)
24+
html_filters.push 'sphinx/clean_html', 'fish/clean_html_sphinx', 'fish/entries_sphinx'
25+
end
26+
1927
version '3.7' do
2028
self.release = '3.7.0'
2129
self.base_url = "https://fishshell.com/docs/#{version}/"

0 commit comments

Comments
 (0)