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
2 class Fish2 class Fish
3 class CleanHtmlSphinxFilter < Filter3 class CleanHtmlSphinxFilter < Filter
4 def call4 def call
5 @doc = at_css('.body')5 @doc = at_css('.body > section') or at_css('.body')
6 css('pre[data-language="fish"]').each do |node|6 css('pre[data-language="fish"]').each do |node|
7 node['data-language'] = 'shell'7 node['data-language'] = 'shell'
8 end8 end
lib/docs/scrapers/fish.rb+8−0
@@ -16,6 +16,14 @@ module Docs · 15 unmodified lines
16 Licensed under the GNU General Public License, version 2.16 Licensed under the GNU General Public License, version 2.
17 HTML17 HTML
18 18
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
19 version '3.4' do27 version '3.4' do
20 self.release = '3.4.0'28 self.release = '3.4.0'
21 self.base_url = "https://fishshell.com/docs/#{version}/"29 self.base_url = "https://fishshell.com/docs/#{version}/"