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.
|
|
|
module Docs
|
|
|
|
class D3 < UrlScraper
|
|
|
|
self.name = 'D3.js'
|
|
|
|
self.slug = 'd3'
|
|
|
|
self.type = 'd3'
|
|
|
|
self.version = '3.5.9'
|
|
|
|
self.base_url = 'https://github.com/mbostock/d3/wiki/'
|
|
|
|
self.root_path = 'API-Reference'
|
|
|
|
self.links = {
|
|
|
|
home: 'http://d3js.org/',
|
|
|
|
code: 'https://github.com/mbostock/d3'
|
|
|
|
}
|
|
|
|
|
|
|
|
html_filters.push 'd3/clean_html', 'd3/entries'
|
|
|
|
|
|
|
|
options[:container] = '#wiki-wrapper'
|
|
|
|
|
|
|
|
options[:only] = %w(
|
|
|
|
Selections
|
|
|
|
Transitions
|
|
|
|
Arrays
|
|
|
|
Math
|
|
|
|
Requests
|
|
|
|
Formatting
|
|
|
|
CSV
|
|
|
|
Localization
|
|
|
|
Colors
|
|
|
|
Namespaces
|
|
|
|
Internals)
|
|
|
|
|
|
|
|
options[:only_patterns] = [
|
|
|
|
/\-Scales\z/,
|
|
|
|
/\ASVG\-\w/,
|
|
|
|
/\ATime\-/,
|
|
|
|
/\-Layout\z/,
|
|
|
|
/\AGeo\-/,
|
|
|
|
/\-Geom\z/,
|
|
|
|
/\-Behavior\z/]
|
|
|
|
|
|
|
|
options[:skip_patterns] = [/\//]
|
|
|
|
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
© 2015 Michael Bostock<br>
|
|
|
|
Licensed under the BSD License.
|
|
|
|
HTML
|
|
|
|
end
|
|
|
|
end
|