cmake.rb 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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;2017 Kitware, Inc. and Contributors<br>
  17. Licensed under the BSD 3-clause License.
  18. HTML
  19. version '3.8' do
  20. self.release = '3.8.0'
  21. self.base_url = 'https://cmake.org/cmake/help/v3.8/'
  22. end
  23. version '3.7' do
  24. self.release = '3.7.2'
  25. self.base_url = 'https://cmake.org/cmake/help/v3.7/'
  26. end
  27. version '3.6' do
  28. self.release = '3.6.3'
  29. self.base_url = 'https://cmake.org/cmake/help/v3.6/'
  30. end
  31. version '3.5' do
  32. self.release = '3.5.2'
  33. self.base_url = 'https://cmake.org/cmake/help/v3.5/'
  34. end
  35. end
  36. end