History

Fix styling and added licnese to about page

dohsimpson committed 5 years ago

Commit 0339b071 parent 6b2ed832 files · +11 −4Browse files

Unified · Split

2 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +5 −0
  2. lib/docs/filters/react_bootstrap/clean_html.rb +6 −4
assets/javascripts/templates/pages/about_tmpl.coffee+5−0
@@ -686,6 +686,11 @@ credits = [ · 685 unmodified lines
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+6−4
@@ -5,10 +5,12 @@ module Docs · 4 unmodified lines
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