|
|
|
@ -12,10 +12,26 @@ module Docs
|
|
|
|
|
options[:container] = '.markdown-body'
|
|
|
|
|
|
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
|
© 2010–2018 Michael Bostock<br>
|
|
|
|
|
© 2010–2020 Michael Bostock<br>
|
|
|
|
|
Licensed under the BSD License.
|
|
|
|
|
HTML
|
|
|
|
|
|
|
|
|
|
version '6' do
|
|
|
|
|
self.release = '6.5.0'
|
|
|
|
|
self.base_url = 'https://github.com/d3/'
|
|
|
|
|
self.root_path = 'd3/blob/master/API.md'
|
|
|
|
|
|
|
|
|
|
html_filters.push 'd3/clean_html', 'd3/entries_v4'
|
|
|
|
|
|
|
|
|
|
options[:only_patterns] = [/\Ad3[\-\w]+\z/, /\Ad3\/blob\/master\/changes\.md\z/i]
|
|
|
|
|
options[:skip_patterns] = [/3\.x-api-reference/]
|
|
|
|
|
|
|
|
|
|
options[:fix_urls] = ->(url) do
|
|
|
|
|
url.sub! %r{/blob/master/readme.md}i, ''
|
|
|
|
|
url
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
version '5' do
|
|
|
|
|
self.release = '5.7.0'
|
|
|
|
|
self.base_url = 'https://github.com/d3/'
|
|
|
|
|