From 0339b078a5478183ea2ef681d47b5598df38a7e2 Mon Sep 17 00:00:00 2001 From: dohsimpson Date: Tue, 23 Feb 2021 00:20:46 -0500 Subject: [PATCH] Fix styling and added licnese to about page --- assets/javascripts/templates/pages/about_tmpl.coffee | 5 +++++ lib/docs/filters/react_bootstrap/clean_html.rb | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee index a868b281..d231e717 100644 --- a/assets/javascripts/templates/pages/about_tmpl.coffee +++ b/assets/javascripts/templates/pages/about_tmpl.coffee @@ -686,6 +686,11 @@ credits = [ '2013-present Facebook Inc.', 'MIT', 'https://raw.githubusercontent.com/facebook/react/master/LICENSE' + ], [ + 'React Bootstrap', + '2014-present Stephen J. Collings, Matthew Honnibal, Pieter Vanderwerff', + 'MIT', + 'https://raw.githubusercontent.com/react-bootstrap/react-bootstrap/master/LICENSE' ], [ 'ReactiveX', 'ReactiveX contributors', diff --git a/lib/docs/filters/react_bootstrap/clean_html.rb b/lib/docs/filters/react_bootstrap/clean_html.rb index 6f73ab46..a8117a9a 100644 --- a/lib/docs/filters/react_bootstrap/clean_html.rb +++ b/lib/docs/filters/react_bootstrap/clean_html.rb @@ -5,10 +5,12 @@ module Docs css('.flex-column.d-flex').remove css('header').remove css('.bs-example').remove - css('.position-relative').each do |node| - code = node.at_css('textarea') - code.name = 'pre' - code['style'] = code['style'] + '; border: solid 1px;' + + css('.position-relative pre').each do |node| + # node.content = node.content + node.remove_attribute('style') + node['data-language'] = 'jsx' + node.parent.replace(node) end doc end