History

Update D3.js documentation (5.1.0)

Thibaut Courouble committed 8 years ago

Commit 47591b91 parent 587124a2 files · +18 −2Browse files

Unified · Split

2 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +1 −1
  2. lib/docs/scrapers/d3.rb +17 −1
assets/javascripts/templates/pages/about_tmpl.coffee+1−1
@@ -207,7 +207,7 @@ credits = [ · 206 unmodified lines
207 'https://raw.githubusercontent.com/dlang/phobos/master/LICENSE_1_0.txt'207 'https://raw.githubusercontent.com/dlang/phobos/master/LICENSE_1_0.txt'
208 ], [208 ], [
209 'D3.js',209 'D3.js',
210 '2010-2017 Michael Bostock',210 '2010-2018 Michael Bostock',
211 'BSD',211 'BSD',
212 'https://raw.githubusercontent.com/d3/d3/master/LICENSE'212 'https://raw.githubusercontent.com/d3/d3/master/LICENSE'
213 ], [213 ], [
lib/docs/scrapers/d3.rb+17−1
@@ -12,10 +12,26 @@ module Docs · 11 unmodified lines
12 options[:container] = '.markdown-body'12 options[:container] = '.markdown-body'
13 13
14 options[:attribution] = <<-HTML14 options[:attribution] = <<-HTML
15 &copy; 2010&ndash;2017 Michael Bostock<br>15 &copy; 2010&ndash;2018 Michael Bostock<br>
16 Licensed under the BSD License.16 Licensed under the BSD License.
17 HTML17 HTML
18 18
19 version '5' do
20 self.release = '5.1.0'
21 self.base_url = 'https://github.com/d3/'
22 self.root_path = 'd3/blob/master/API.md'
23
24 html_filters.push 'd3/clean_html', 'd3/entries_v4'
25
26 options[:only_patterns] = [/\Ad3[\-\w]+\z/, /\Ad3\/blob\/master\/changes\.md\z/i]
27 options[:skip_patterns] = [/3\.x-api-reference/]
28
29 options[:fix_urls] = ->(url) do
30 url.sub! %r{/blob/master/readme.md}i, ''
31 url
32 end
33 end
34
19 version '4' do35 version '4' do
20 self.release = '4.12.2'36 self.release = '4.12.2'
21 self.base_url = 'https://github.com/d3/'37 self.base_url = 'https://github.com/d3/'