Browse Source

Update D3.js documentation (4.2.6, 3.5.17)

Thibaut Courouble 9 years ago
parent
commit
7b35dddb44
2 changed files with 3 additions and 1 deletions
  1. 2 0
      lib/docs/filters/d3/entries_v4.rb
  2. 1 1
      lib/docs/scrapers/d3.rb

+ 2 - 0
lib/docs/filters/d3/entries_v4.rb

@@ -20,6 +20,8 @@ module Docs
           name = node.content.strip
           name.remove! 'Source'
           name.remove! '<>'
+          name.remove! %r{\s\-.*}
+          name.remove! %r{\s\[.*\]}
           name.gsub! %r{\(.+?\)\)?}, '()'
           name.sub! %r{\A(svg:\w+)\s+.+}, '\1'
           name.split(/\s+/).each do |n|

+ 1 - 1
lib/docs/scrapers/d3.rb

@@ -16,7 +16,7 @@ module Docs
     HTML
 
     version '4' do
-      self.release = '4.2.2'
+      self.release = '4.2.6'
       self.base_url = 'https://github.com/d3/'
       self.root_path = 'd3/blob/master/API.md'