Jelajahi Sumber

Update Fish documentation (3.4.0)

Simon Legner 3 tahun lalu
induk
melakukan
1d127650ba

+ 1 - 1
assets/javascripts/templates/pages/about_tmpl.coffee

@@ -314,7 +314,7 @@ credits = [
     'https://raw.githubusercontent.com/falconry/falcon/master/LICENSE'
   ], [
     'Fish',
-    '2005–2009 Axel Liljencrantz, 2009–2021 fish-shell contributors',
+    '2005–2009 Axel Liljencrantz, 2009–2022 fish-shell contributors',
     'GPLv2',
     'https://fishshell.com/docs/current/license.html'
   ], [

+ 9 - 1
lib/docs/scrapers/fish.rb

@@ -12,10 +12,18 @@ module Docs
 
     # https://fishshell.com/docs/current/license.html
     options[:attribution] = <<-HTML
-      &copy; 2021 fish-shell developers<br>
+      &copy; 2022 fish-shell developers<br>
       Licensed under the GNU General Public License, version 2.
     HTML
 
+    version '3.4' do
+      self.release = '3.4.0'
+      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.3' do
       self.release = '3.3.0'
       self.base_url = "https://fishshell.com/docs/#{version}/"