[devdocsgjs/main: 1527/1867] Fix styling and added licnese to about page
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 1527/1867] Fix styling and added licnese to about page
- Date: Fri, 19 Nov 2021 23:48:07 +0000 (UTC)
commit 0339b078a5478183ea2ef681d47b5598df38a7e2
Author: dohsimpson <mydohsimpson gmail com>
Date: Tue Feb 23 00:20:46 2021 -0500
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]