ansible.rb 745 B

12345678910111213141516171819202122232425262728293031
  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'
  10. options[:skip] = %w(
  11. glossary.html
  12. faq.html
  13. community.html
  14. tower.html
  15. quickstart.html
  16. list_of_all_modules.html)
  17. options[:attribution] = <<-HTML
  18. &copy; 2012&ndash;2018 Michael DeHaan<br>
  19. &copy; 2018 Red Hat, Inc.<br>
  20. Licensed under the GNU General Public License version 3.
  21. HTML
  22. version '2.4' do
  23. self.release = '2.4.3'
  24. self.base_url = 'https://docs.ansible.com/ansible/2.4/'
  25. end
  26. end
  27. end