ansible.rb 743 B

123456789101112131415161718192021222324252627282930
  1. module Docs
  2. class Ansible < UrlScraper
  3. self.name = 'Ansible'
  4. self.type = 'ansible'
  5. self.release = '2.1.0'
  6. self.base_url = 'http://docs.ansible.com/ansible/'
  7. self.root_path = 'intro.html'
  8. self.links = {
  9. home: 'http://docs.ansible.com',
  10. code: 'https://github.com/ansible/ansible'
  11. }
  12. html_filters.push 'ansible/clean_html', 'ansible/entries'
  13. options[:title] = 'Ansible'
  14. options[:container] = '#page-content'
  15. options[:skip] = [
  16. 'glossary.html',
  17. 'faq.html',
  18. 'community.html',
  19. 'tower.html',
  20. 'quickstart.html'
  21. ]
  22. options[:attribution] = <<-HTML
  23. &copy; Michael DeHaan<br>
  24. Licensed under the GNU General Public License v.3.
  25. HTML
  26. end
  27. end