cmake.rb 647 B

1234567891011121314151617181920212223242526272829303132
  1. module Docs
  2. class Cmake < UrlScraper
  3. self.name = 'CMake'
  4. self.slug = 'cmake'
  5. self.type = 'cmake'
  6. self.release = '3.5'
  7. self.base_url = 'https://cmake.org/cmake/help/v3.5/'
  8. options[:skip] = %w(
  9. release/index.html
  10. genindex.html
  11. search.html
  12. )
  13. options[:only_patterns] = [
  14. /manual/,
  15. /command/,
  16. /policy/,
  17. /prop_/,
  18. /variable/
  19. ]
  20. options[:container] = '.body'
  21. html_filters.push 'cmake/clean_html', 'cmake/entries'
  22. options[:attribution] = <<-HTML
  23. &copy; 2000&ndash;2016 Kitware, Inc.<br>
  24. Licensed under the BSD 3-clause License.
  25. HTML
  26. end
  27. end