cppref.rb 697 B

1234567891011121314151617181920212223242526272829
  1. module Docs
  2. class Cppref < UrlScraper
  3. self.abstract = true
  4. self.type = 'cppref'
  5. self.root_path = 'header'
  6. html_filters.insert_before 'clean_html', 'cppref/fix_code'
  7. html_filters.push 'cppref/clean_html', 'title'
  8. # 'cpp20/entries',
  9. options[:decode_and_clean_paths] = true
  10. options[:container] = '#content'
  11. options[:title] = false
  12. options[:skip] = %w(language/history.html)
  13. options[:skip_patterns] = [
  14. /experimental/
  15. ]
  16. options[:attribution] = <<-HTML
  17. &copy; cppreference.com<br>
  18. Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
  19. HTML
  20. # def get_latest_version
  21. # end
  22. end
  23. end