cmake.rb 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. module Docs
  2. class Cmake < UrlScraper
  3. self.name = 'CMake'
  4. self.type = 'sphinx_simple'
  5. self.links = {
  6. home: 'https://cmake.org/',
  7. code: 'https://cmake.org/gitweb?p=cmake.git;a=summary'
  8. }
  9. html_filters.push 'cmake/clean_html', 'sphinx/clean_html', 'cmake/entries', 'title'
  10. options[:container] = '.body'
  11. options[:title] = false
  12. options[:root_title] = 'CMake Reference Documentation'
  13. options[:skip] = %w(release/index.html genindex.html search.html)
  14. options[:skip_patterns] = [/\Agenerator/, /\Ainclude/, /\Arelease/]
  15. options[:attribution] = <<-HTML
  16. &copy; 2000&ndash;2016 Kitware, Inc.<br>
  17. &copy; 2000&ndash;2011 Insight Software Consortium<br>
  18. Licensed under the BSD 3-clause License.
  19. HTML
  20. version '3.7' do
  21. self.release = '3.7.1'
  22. self.base_url = 'https://cmake.org/cmake/help/v3.7/'
  23. end
  24. version '3.6' do
  25. self.release = '3.6.3'
  26. self.base_url = 'https://cmake.org/cmake/help/v3.6/'
  27. end
  28. version '3.5' do
  29. self.release = '3.5.2'
  30. self.base_url = 'https://cmake.org/cmake/help/v3.5/'
  31. end
  32. end
  33. end