mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
697 B
30 lines
697 B
3 years ago
|
module Docs
|
||
|
class Cppref < UrlScraper
|
||
|
self.abstract = true
|
||
|
self.type = 'cppref'
|
||
|
self.root_path = 'header'
|
||
|
|
||
|
html_filters.insert_before 'clean_html', 'cppref/fix_code'
|
||
|
html_filters.push 'cppref/clean_html', 'title'
|
||
|
# 'cpp20/entries',
|
||
|
options[:decode_and_clean_paths] = true
|
||
|
options[:container] = '#content'
|
||
|
options[:title] = false
|
||
|
options[:skip] = %w(language/history.html)
|
||
|
|
||
|
options[:skip_patterns] = [
|
||
|
/experimental/
|
||
|
]
|
||
|
|
||
|
options[:attribution] = <<-HTML
|
||
|
© cppreference.com<br>
|
||
|
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
|
||
|
HTML
|
||
|
|
||
|
# def get_latest_version
|
||
|
|
||
|
# end
|
||
|
|
||
|
end
|
||
|
end
|