[devdocsgjs/main: 65/76] Update Fish documentation (3.5.0)
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 65/76] Update Fish documentation (3.5.0)
- Date: Fri, 15 Jul 2022 21:39:47 +0000 (UTC)
commit f3a4b4c3f5527769bf3480120db02e7a16e0183a
Author: Simon Legner <Simon Legner gmail com>
Date: Tue Jul 5 19:53:41 2022 +0200
Update Fish documentation (3.5.0)
lib/docs/filters/fish/clean_html_sphinx.rb | 2 +-
lib/docs/scrapers/fish.rb | 8 ++++++++
2 files changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/lib/docs/filters/fish/clean_html_sphinx.rb b/lib/docs/filters/fish/clean_html_sphinx.rb
index d14832a4..dde90521 100755
--- a/lib/docs/filters/fish/clean_html_sphinx.rb
+++ b/lib/docs/filters/fish/clean_html_sphinx.rb
@@ -2,7 +2,7 @@ module Docs
class Fish
class CleanHtmlSphinxFilter < Filter
def call
- @doc = at_css('.body')
+ @doc = at_css('.body > section') or at_css('.body')
css('pre[data-language="fish"]').each do |node|
node['data-language'] = 'shell'
end
diff --git a/lib/docs/scrapers/fish.rb b/lib/docs/scrapers/fish.rb
index 4202a30d..a50cc91d 100644
--- a/lib/docs/scrapers/fish.rb
+++ b/lib/docs/scrapers/fish.rb
@@ -16,6 +16,14 @@ module Docs
Licensed under the GNU General Public License, version 2.
HTML
+ version '3.5' do
+ self.release = '3.5.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.4' do
self.release = '3.4.0'
self.base_url = "https://fishshell.com/docs/#{version}/"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]