ansible.rb 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. module Docs
  2. class Ansible < UrlScraper
  3. self.name = 'Ansible'
  4. self.type = 'sphinx'
  5. self.links = {
  6. home: 'https://www.ansible.com/',
  7. code: 'https://github.com/ansible/ansible'
  8. }
  9. html_filters.push 'ansible/entries', 'sphinx/clean_html', 'ansible/clean_html'
  10. options[:attribution] = <<-HTML
  11. &copy; 2012&ndash;2018 Michael DeHaan<br>
  12. &copy; 2018 Red Hat, Inc.<br>
  13. Licensed under the GNU General Public License version 3.
  14. HTML
  15. version '2.5' do
  16. self.release = '2.5.3'
  17. self.base_url = 'https://docs.ansible.com/ansible/2.5/'
  18. options[:skip] = %w(
  19. installation_guide/index.html
  20. reference_appendices/glossary.html
  21. reference_appendices/faq.html
  22. reference_appendices/tower.html
  23. user_guide/quickstart.html
  24. modules/modules_by_category.html
  25. modules/list_of_all_modules.html)
  26. options[:skip_patterns] = [
  27. /\Acommunity.*/i,
  28. /\Adev_guide.*/i,
  29. /\Aroadmap.*/i,
  30. ]
  31. end
  32. version '2.4' do
  33. self.release = '2.4.3'
  34. self.base_url = 'https://docs.ansible.com/ansible/2.4/'
  35. options[:skip] = %w(
  36. glossary.html
  37. faq.html
  38. community.html
  39. tower.html
  40. quickstart.html
  41. list_of_all_modules.html)
  42. end
  43. end
  44. end