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.
35 lines
810 B
35 lines
810 B
![]()
8 years ago
|
module Docs
|
||
|
class Java < UrlScraper
|
||
|
self.name = 'Java'
|
||
|
self.type = 'java'
|
||
|
self.root_path = 'overview-summary.html'
|
||
|
self.links = {
|
||
|
home: 'http://docs.oracle.com/javase/8'
|
||
|
}
|
||
|
self.release = '8'
|
||
|
self.base_url = 'http://docs.oracle.com/javase/8/docs/api/'
|
||
|
|
||
|
html_filters.push 'java/entries', 'java/clean_html'
|
||
|
|
||
|
options[:only_patterns] = [
|
||
|
/\Ajava\/io/,
|
||
|
/\Ajava\/lang/,
|
||
|
/\Ajava\/math/,
|
||
|
/\Ajava\/net/,
|
||
|
/\Ajava\/text/,
|
||
|
/\Ajava\/time/,
|
||
|
/\Ajava\/util/
|
||
|
]
|
||
|
options[:skip_patterns] = [
|
||
|
/package-tree.html/,
|
||
|
/package-use.html/,
|
||
|
/deprecated-list.html/,
|
||
|
/class-use\//,
|
||
|
/doc-files\//
|
||
|
]
|
||
|
|
||
|
options[:attribution] = <<-HTML
|
||
|
© 1993–2016, Oracle and/or its affiliates.
|
||
|
HTML
|
||
|
end
|
||
|
end
|