Skip to content

Commit

Permalink
Update Varnish documentation (7.4)
Browse files Browse the repository at this point in the history
  • Loading branch information
simon04 committed Oct 9, 2023
1 parent 06c514f commit 19445c3
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lib/docs/scrapers/varnish.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,21 @@ class Varnish < UrlScraper
code: 'https://github.com/varnishcache/varnish-cache'
}


html_filters.push 'varnish/entries', 'sphinx/clean_html'

options[:container] = '.body > section'


options[:skip] = %w(genindex.html search.html)

options[:skip_patterns] = [/phk/, /glossary/, /whats-new/]


options[:attribution] = <<-HTML
Copyright &copy; 2006 Verdens Gang AS<br>
Copyright &copy; 2006&ndash;2020 Varnish Software AS<br>
Licensed under the BSD-2-Clause License.
HTML

version do
self.release = '7.3.0'
self.base_url = 'https://varnish-cache.org/docs/7.3/'
self.release = '7.4'
self.base_url = "https://varnish-cache.org/docs/#{release}/"
end

def get_latest_version(opts)
Expand Down

0 comments on commit 19445c3

Please sign in to comment.