From 29f6e1c84c7327a9242c1a373f718b4b4244cb10 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 16 Mar 2025 09:37:36 +0100 Subject: [PATCH] Update Fish documentation (4.0.1) --- lib/docs/filters/fish/entries_sphinx.rb | 2 +- lib/docs/scrapers/fish.rb | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/lib/docs/filters/fish/entries_sphinx.rb b/lib/docs/filters/fish/entries_sphinx.rb index 9d33de17..f60227ee 100755 --- a/lib/docs/filters/fish/entries_sphinx.rb +++ b/lib/docs/filters/fish/entries_sphinx.rb @@ -14,7 +14,7 @@ module Docs end def get_type - if root_page? || slug == 'faq' || slug == 'completions' || slug == 'fish_for_bash_users' + if root_page? || slug == 'faq' || slug == 'completions' || slug == 'fish_for_bash_users' || slug == 'prompt' 'Manual' elsif slug.starts_with?('cmds') || slug == 'commands' 'Commands' diff --git a/lib/docs/scrapers/fish.rb b/lib/docs/scrapers/fish.rb index 8e9c3326..6bf6e0ff 100644 --- a/lib/docs/scrapers/fish.rb +++ b/lib/docs/scrapers/fish.rb @@ -8,14 +8,22 @@ module Docs code: 'https://github.com/fish-shell/fish-shell' } - options[:skip] = %w(design.html license.html) + options[:skip] = %w(design.html license.html contributing.html) # https://fishshell.com/docs/current/license.html options[:attribution] = <<-HTML - © 2005-2009 Axel Liljencrantz, 2009-2023 fish-shell contributors
+ © 2005-2009 Axel Liljencrantz, 2009-2025 fish-shell contributors
Licensed under the GNU General Public License, version 2. HTML + version '4.0' do + self.release = '4.0.1' + self.base_url = "https://fishshell.com/docs/#{version}/" + + options[:skip].concat %w(genindex.html relnotes.html) + html_filters.push 'sphinx/clean_html', 'fish/clean_html_sphinx', 'fish/entries_sphinx' + end + version '3.7' do self.release = '3.7.0' self.base_url = "https://fishshell.com/docs/#{version}/"