History

Update D3.js documentation (4.10.0, 3.5.17)

Thibaut Courouble committed 9 years ago

Commit aee166c1 parent ec3bb912 files · +3 −1Browse files

Unified · Split

2 files
  1. lib/docs/filters/d3/clean_html.rb +1 −0
  2. lib/docs/scrapers/d3.rb +2 −1
lib/docs/filters/d3/clean_html.rb+1−0
@@ -12,6 +12,7 @@ module Docs · 11 unmodified lines
12 12
13 # Make headings for function definitions and add "id" attributes13 # Make headings for function definitions and add "id" attributes
14 css('p > a:first-child').each do |node|14 css('p > a:first-child').each do |node|
15 next unless node.parent
15 next unless node['name'] || node.content == '#'16 next unless node['name'] || node.content == '#'
16 parent = node.parent17 parent = node.parent
17 parent.name = 'h6'18 parent.name = 'h6'
lib/docs/scrapers/d3.rb+2−1
@@ -8,6 +8,7 @@ module Docs · 7 unmodified lines
8 code: 'https://github.com/d3/d3'8 code: 'https://github.com/d3/d3'
9 }9 }
10 10
11 options[:max_image_size] = 150_000
11 options[:container] = '.markdown-body'12 options[:container] = '.markdown-body'
12 13
13 options[:attribution] = <<-HTML14 options[:attribution] = <<-HTML
@@ -16,7 +17,7 @@ module Docs · 2 unmodified lines
16 HTML17 HTML
17 18
18 version '4' do19 version '4' do
19 self.release = '4.9.1'20 self.release = '4.10.0'
20 self.base_url = 'https://github.com/d3/'21 self.base_url = 'https://github.com/d3/'
21 self.root_path = 'd3/blob/master/API.md'22 self.root_path = 'd3/blob/master/API.md'
22 23