History

Update Fish documentation (3.5.0)

Simon Legner committed 4 years ago

Commit f3a4b4c1 parent eb7c11c2 files · +9 −1Browse files

Unified · Split

2 files
  1. lib/docs/filters/fish/clean_html_sphinx.rb +1 −1
  2. lib/docs/scrapers/fish.rb +8 −0
lib/docs/filters/fish/clean_html_sphinx.rb+1−1
@@ -2,7 +2,7 @@ module Docs · 1 unmodified line
22 class Fish
33 class CleanHtmlSphinxFilter < Filter
44 def call
5− @doc = at_css('.body')
5+ @doc = at_css('.body > section') or at_css('.body')
66 css('pre[data-language="fish"]').each do |node|
77 node['data-language'] = 'shell'
88 end
lib/docs/scrapers/fish.rb+8−0
@@ -16,6 +16,14 @@ module Docs · 15 unmodified lines
1616 Licensed under the GNU General Public License, version 2.
1717 HTML
1818
19+ version '3.5' do
20+ self.release = '3.5.0'
21+ self.base_url = "https://fishshell.com/docs/#{version}/"
22+
23+ options[:skip].concat %w(genindex.html relnotes.html)
24+ html_filters.push 'sphinx/clean_html', 'fish/clean_html_sphinx', 'fish/entries_sphinx'
25+ end
26+
1927 version '3.4' do
2028 self.release = '3.4.0'
2129 self.base_url = "https://fishshell.com/docs/#{version}/"