1
0

salt_stack.rb 744 B

123456789101112131415161718192021222324252627
  1. module Docs
  2. class SaltStack < UrlScraper
  3. self.type = 'simple'
  4. self.slug = 'saltstack'
  5. self.release = '3003'
  6. self.base_url = 'https://docs.saltproject.io/en/latest/'
  7. self.root_path = 'ref/index.html'
  8. self.links = {
  9. home: 'https://www.saltproject.io/',
  10. code: 'https://github.com/saltstack/salt'
  11. }
  12. html_filters.push 'salt_stack/clean_html', 'salt_stack/entries'
  13. options[:only_patterns] = [/all\//]
  14. options[:container] = '.body-content > .section'
  15. options[:attribution] = <<-HTML
  16. &copy; 2021 SaltStack.<br>
  17. Licensed under the Apache License, Version 2.0.
  18. HTML
  19. def get_latest_version(opts)
  20. get_latest_github_release('saltstack', 'salt', opts)
  21. end
  22. end
  23. end