enzyme: process review comments

pull/882/head
Jasper van Merle 6 years ago
parent abe3d4b370
commit af412d641e

@ -4,14 +4,21 @@ module Docs
def call def call
@doc = at_css('.page-inner > section') @doc = at_css('.page-inner > section')
# Remove badges
if root_page?
css('a > img').each do |node|
node.parent.remove
end
end
# Clean headers # Clean headers
css('h1').each do |node| css('h1').each do |node|
node.content = node.content node.content = node.content
end end
# Make headers on reference pages bigger # Make headers on reference pages bigger
if subpath.include?('ReactWrapper') || subpath.include?('ShallowWrapper') if subpath.include?('api/')
css('h4').each do |node| css('h3, h4').each do |node|
node.name = 'h2' node.name = 'h2'
end end
end end

@ -10,7 +10,7 @@ module Docs
html_filters.push 'enzyme/entries', 'enzyme/clean_html' html_filters.push 'enzyme/entries', 'enzyme/clean_html'
options[:skip] = %w(CHANGELOG.html docs/future.html CONTRIBUTING.html) options[:skip] = %w(CHANGELOG.html docs/future.html docs/guides.html docs/api/ CONTRIBUTING.html)
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
&copy; 2015 Airbnb, Inc.<br> &copy; 2015 Airbnb, Inc.<br>

Loading…
Cancel
Save