[devdocsgjs/main: 1533/1867] Update Fish documentation (3.2.0)
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 1533/1867] Update Fish documentation (3.2.0)
- Date: Fri, 19 Nov 2021 23:48:07 +0000 (UTC)
commit 6f7ff4ddd365df598dcb097a548fe88a7c16517a
Author: Simon Legner <Simon Legner gmail com>
Date: Tue Mar 2 08:26:01 2021 +0100
Update Fish documentation (3.2.0)
assets/javascripts/templates/pages/about_tmpl.coffee | 2 +-
lib/docs/filters/fish/entries_sphinx.rb | 6 ++++--
lib/docs/scrapers/fish.rb | 10 +++++++++-
3 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee
b/assets/javascripts/templates/pages/about_tmpl.coffee
index 52b97fb7..3d155409 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/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'
], [
diff --git a/lib/docs/filters/fish/entries_sphinx.rb b/lib/docs/filters/fish/entries_sphinx.rb
index f4fc939d..50341823 100755
--- a/lib/docs/filters/fish/entries_sphinx.rb
+++ b/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'
diff --git a/lib/docs/scrapers/fish.rb b/lib/docs/scrapers/fish.rb
index 175c95e5..08f240e9 100644
--- a/lib/docs/scrapers/fish.rb
+++ b/lib/docs/scrapers/fish.rb
@@ -12,10 +12,18 @@ module Docs
# https://fishshell.com/docs/current/license.html
options[:attribution] = <<-HTML
- © 2019 fish-shell developers<br>
+ © 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}/"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]