[devdocsgjs/main: 232/239] eigen3: clean html, scss
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 232/239] eigen3: clean html, scss
- Date: Fri, 8 Apr 2022 07:47:44 +0000 (UTC)
commit c94aa25e6c0e2cbefa9442d977df9bd11dc74585
Author: Simon Legner <Simon Legner gmail com>
Date: Thu Mar 31 08:25:32 2022 +0200
eigen3: clean html, scss
assets/stylesheets/pages/_eigen3.scss | 82 -----------------------------------
lib/docs/filters/eigen3/clean_html.rb | 6 +++
lib/docs/scrapers/eigen3.rb | 2 +-
3 files changed, 7 insertions(+), 83 deletions(-)
---
diff --git a/assets/stylesheets/pages/_eigen3.scss b/assets/stylesheets/pages/_eigen3.scss
index f0145d90..e69de29b 100644
--- a/assets/stylesheets/pages/_eigen3.scss
+++ b/assets/stylesheets/pages/_eigen3.scss
@@ -1,82 +0,0 @@
-._eigen3 {
- code, span.mlabel { @extend %label; }
-
- .title { @extend h1; }
-
- /* Breadcrumb Navigation */
- div.ingroups {
- font-size: 10pt;
- text-align: left;
- }
-
- /* Method Title */
- .memtitle {
- padding: 6px;
- @extend %heading-box;
- }
-
- /* begin Method Declearation */
- .mdescLeft, .mdescRight, .memItemLeft, .memItemRight,
- .memTemplItemLeft, .memTemplItemRight, .memtemplate, .memTemplParams {
- border: none;
- padding: 1px 8px 0 8px;
- }
-
- .memtemplate, .memTemplParams {
- font-size: 80%;
- color: var(--prismKeyword);
- }
-
- .memproto, dl.reflist dt {
- border: 1px solid var(--boxBorder);
- margin-bottom: 0.8em;
- }
-
- .memproto a.el, .memberdecls a.el {
- color: var(--prismKeyword);
- text-decoration: none;
- }
-
- .memdoc {
- padding-left: 6px;
- }
-
- table.mlabels {
- padding: 0;
- margin: 0;
- border: none;
- }
-
- td.mlabels-left, td.mlabels-right {
- border: none;
- padding: 0;
- vertical-align: bottom;
- }
-
- td.mlabels-left {
- width: 100%;
- }
-
- td.memSeparator {
- line-height: 1px;
- padding: 0px;
- }
-
- table.memname {
- border: none;
- margin-left: 6px;
- margin-top: 0.5em;
- th, td {
- padding: 1px;
- vertical-align: bottom;
- }
- tr, th, td {
- border: none;
- }
- }
-
- .paramname, .mlabels-left, .mlabels-right, .memtemplate, .memTemplParams {
- white-space: nowrap;
- }
- /* end Method Declearation */
-}
diff --git a/lib/docs/filters/eigen3/clean_html.rb b/lib/docs/filters/eigen3/clean_html.rb
index 3cbe6bb2..3870566e 100644
--- a/lib/docs/filters/eigen3/clean_html.rb
+++ b/lib/docs/filters/eigen3/clean_html.rb
@@ -12,6 +12,12 @@ module Docs
css('.top').remove
css('.dynheader.closed').remove
css('.permalink').remove
+ css('.groupheader').remove
+ css('.header').remove
+ css('#details').remove
+ css('*').each do |node|
+ node.remove_attribute('class')
+ end
doc
end
end
diff --git a/lib/docs/scrapers/eigen3.rb b/lib/docs/scrapers/eigen3.rb
index e30fe54c..7ed3d1eb 100644
--- a/lib/docs/scrapers/eigen3.rb
+++ b/lib/docs/scrapers/eigen3.rb
@@ -15,7 +15,7 @@ module Docs
code: 'https://gitlab.com/libeigen/eigen'
}
- html_filters.push 'eigen3/entries', 'eigen3/clean_html'
+ html_filters.push 'eigen3/entries', 'eigen3/clean_html', 'title'
# Remove the `clean_text` because Doxygen are actually creating empty
# anchor such as <a id="asd"></a> to do anchor link.. and that anchor
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]