Unified · Split
| @@ -4,14 +4,21 @@ module Docs · 3 unmodified lines | ||
| 4 | 4 | def call |
| 5 | 5 | @doc = at_css('.page-inner > section') |
| 6 | 6 | |
| 7 | + # Remove badges | |
| 8 | + if root_page? | |
| 9 | + css('a > img').each do |node| | |
| 10 | + node.parent.remove | |
| 11 | + end | |
| 12 | + end | |
| 13 | + | |
| 7 | 14 | # Clean headers |
| 8 | 15 | css('h1').each do |node| |
| 9 | 16 | node.content = node.content |
| 10 | 17 | end |
| 11 | 18 | |
| 12 | 19 | # Make headers on reference pages bigger |
| 13 | − if subpath.include?('ReactWrapper') || subpath.include?('ShallowWrapper') | |
| 14 | − css('h4').each do |node| | |
| 20 | + if subpath.include?('api/') | |
| 21 | + css('h3, h4').each do |node| | |
| 15 | 22 | node.name = 'h2' |
| 16 | 23 | end |
| 17 | 24 | end |
| @@ -10,7 +10,7 @@ module Docs · 9 unmodified lines | ||
| 10 | 10 | |
| 11 | 11 | html_filters.push 'enzyme/entries', 'enzyme/clean_html' |
| 12 | 12 | |
| 13 | − options[:skip] = %w(CHANGELOG.html docs/future.html CONTRIBUTING.html) | |
| 13 | + options[:skip] = %w(CHANGELOG.html docs/future.html docs/guides.html docs/api/ CONTRIBUTING.html) | |
| 14 | 14 | |
| 15 | 15 | options[:attribution] = <<-HTML |
| 16 | 16 | © 2015 Airbnb, Inc.<br> |