History

Update D3.js documentation (3.5.16)

Thibaut Courouble committed 10 years ago

Commit 4923f4a1 parent f1638e62 files · +3 −3Browse files

Unified · Split

2 files
  1. lib/docs/filters/d3/clean_html.rb +2 −2
  2. lib/docs/scrapers/d3.rb +1 −1
lib/docs/filters/d3/clean_html.rb+2−2
@@ -4,7 +4,7 @@ module Docs · 3 unmodified lines
4 def call4 def call
5 # Remove links inside <h2> and add "id" attributes5 # Remove links inside <h2> and add "id" attributes
6 css('h2 > a').each do |node|6 css('h2 > a').each do |node|
7 node.parent['id'] = node['name'].remove('user-content-') if node['name']7 node.parent['id'] = (node['id'] || node['name']).remove('user-content-') if node['id'] || node['name']
8 node.before(node.children).remove8 node.before(node.children).remove
9 end9 end
10 10
@@ -18,7 +18,7 @@ module Docs · 7 unmodified lines
18 18
19 # Move content to the root-level19 # Move content to the root-level
20 css('#wiki-content').each do |node|20 css('#wiki-content').each do |node|
21 node.before(node.at_css('.markdown-body').children).remove21 node.before(node.at_css('#wiki-body .markdown-body').children).remove
22 end22 end
23 23
24 # Make headings for function definitions and add "id" attributes24 # Make headings for function definitions and add "id" attributes
lib/docs/scrapers/d3.rb+1−1
@@ -3,7 +3,7 @@ module Docs · 2 unmodified lines
3 self.name = 'D3.js'3 self.name = 'D3.js'
4 self.slug = 'd3'4 self.slug = 'd3'
5 self.type = 'd3'5 self.type = 'd3'
6 self.release = '3.5.12'6 self.release = '3.5.16'
7 self.base_url = 'https://github.com/mbostock/d3/wiki/'7 self.base_url = 'https://github.com/mbostock/d3/wiki/'
8 self.root_path = 'API-Reference'8 self.root_path = 'API-Reference'
9 self.links = {9 self.links = {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t