Skip to content

Commit 0339b07

Browse files
committed
Fix styling and added licnese to about page
1 parent 6b2ed83 commit 0339b07

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

assets/javascripts/templates/pages/about_tmpl.coffee

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,11 @@ credits = [
686686
'2013-present Facebook Inc.',
687687
'MIT',
688688
'https://raw.githubusercontent.com/facebook/react/master/LICENSE'
689+
], [
690+
'React Bootstrap',
691+
'2014-present Stephen J. Collings, Matthew Honnibal, Pieter Vanderwerff',
692+
'MIT',
693+
'https://raw.githubusercontent.com/react-bootstrap/react-bootstrap/master/LICENSE'
689694
], [
690695
'ReactiveX',
691696
'ReactiveX contributors',

lib/docs/filters/react_bootstrap/clean_html.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ def call
55
css('.flex-column.d-flex').remove
66
css('header').remove
77
css('.bs-example').remove
8-
css('.position-relative').each do |node|
9-
code = node.at_css('textarea')
10-
code.name = 'pre'
11-
code['style'] = code['style'] + '; border: solid 1px;'
8+
9+
css('.position-relative pre').each do |node|
10+
# node.content = node.content
11+
node.remove_attribute('style')
12+
node['data-language'] = 'jsx'
13+
node.parent.replace(node)
1214
end
1315
doc
1416
end

0 commit comments

Comments
 (0)