Browse Source

Update Fish documentation (3.2.0)

Simon Legner 4 năm trước cách đây
mục cha
commit
6f7ff4ddd3

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

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

+ 4 - 2
lib/docs/filters/fish/entries_sphinx.rb

@@ -4,6 +4,8 @@ module Docs
       def get_name
         if slug == 'faq'
           'FAQ'
+        elsif slug == 'fish_for_bash_users'
+          'Fish for Bash Users'
         elsif slug.starts_with?('cmds/')
           slug.split('/').last
         else
@@ -12,9 +14,9 @@ module Docs
       end
 
       def get_type
-        if root_page? || slug == 'faq'
+        if root_page? || slug == 'faq' || slug == 'completions' || slug == 'fish_for_bash_users'
           'Manual'
-        elsif slug.starts_with?('cmds')
+        elsif slug.starts_with?('cmds') || slug == 'commands'
           'Commands'
         elsif slug == 'tutorial'
           'Tutorial'

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

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