Showing the changes to lib/docs/scrapers/cppref/cppref.rb (1 of 9 files). Show all
Unified · Split
| @@ -0,0 +1,29 @@ | ||
| 1 | +module Docs | |
| 2 | + class Cppref < UrlScraper | |
| 3 | + self.abstract = true | |
| 4 | + self.type = 'cppref' | |
| 5 | + self.root_path = 'header' | |
| 6 | + | |
| 7 | + html_filters.insert_before 'clean_html', 'cppref/fix_code' | |
| 8 | + html_filters.push 'cppref/clean_html', 'title' | |
| 9 | + # 'cpp20/entries', | |
| 10 | + options[:decode_and_clean_paths] = true | |
| 11 | + options[:container] = '#content' | |
| 12 | + options[:title] = false | |
| 13 | + options[:skip] = %w(language/history.html) | |
| 14 | + | |
| 15 | + options[:skip_patterns] = [ | |
| 16 | + /experimental/ | |
| 17 | + ] | |
| 18 | + | |
| 19 | + options[:attribution] = <<-HTML | |
| 20 | + © cppreference.com<br> | |
| 21 | + Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0. | |
| 22 | + HTML | |
| 23 | + | |
| 24 | + # def get_latest_version | |
| 25 | + | |
| 26 | + # end | |
| 27 | + | |
| 28 | + end | |
| 29 | +end | |