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