Update Fish documentation (3.2.0)

pull/1492/head
Simon Legner 4 years ago
parent 7480257c59
commit 6f7ff4ddd3

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

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

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

Loading…
Cancel
Save