[devdocsgjs/main: 1048/1867] [django] Clean up the multi-platform console blocks
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 1048/1867] [django] Clean up the multi-platform console blocks
- Date: Fri, 19 Nov 2021 23:47:40 +0000 (UTC)
commit cb790e95abe398e56392441abb56def3f64ab989
Author: Jed Fox <git twopointzero us>
Date: Mon Feb 10 14:46:45 2020 -0500
[django] Clean up the multi-platform console blocks
lib/docs/filters/django/clean_html.rb | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/lib/docs/filters/django/clean_html.rb b/lib/docs/filters/django/clean_html.rb
index 30a0d9e9..03f8c2ba 100644
--- a/lib/docs/filters/django/clean_html.rb
+++ b/lib/docs/filters/django/clean_html.rb
@@ -4,6 +4,14 @@ module Docs
def call
@doc = at_css('.yui-g')
+ css('.console-block').each do |node|
+ node.css('input', 'label').remove
+ node.css('section').each do |sec|
+ sec.before(sec.children).remove
+ end
+ node.before(node.children).remove
+ end
+
doc
end
end
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]