[devdocsgjs/main: 894/1867] gnu_cobol: add logo and fix review comments in clean html filter
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 894/1867] gnu_cobol: add logo and fix review comments in clean html filter
- Date: Fri, 19 Nov 2021 23:47:34 +0000 (UTC)
commit 873f92d3c27c5cf1a2e15be8849cdef9e7f8b639
Author: Jasper van Merle <jaspervmerle gmail com>
Date: Sun Sep 1 03:24:11 2019 +0200
gnu_cobol: add logo and fix review comments in clean html filter
lib/docs/filters/gnu_cobol/clean_html.rb | 14 ++++++++------
public/icons/docs/gnu_cobol/16.png | Bin 0 -> 661 bytes
public/icons/docs/gnu_cobol/16 2x png | Bin 0 -> 1977 bytes
public/icons/docs/gnu_cobol/SOURCE | 1 +
4 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/lib/docs/filters/gnu_cobol/clean_html.rb b/lib/docs/filters/gnu_cobol/clean_html.rb
index 0ca5552f..6ac3e7b3 100644
--- a/lib/docs/filters/gnu_cobol/clean_html.rb
+++ b/lib/docs/filters/gnu_cobol/clean_html.rb
@@ -16,14 +16,16 @@ module Docs
# Remove horizontal lines
css('hr').remove
+ # Remove acronym tags but keep the content
+ css('acronym').each {|node| node.name = 'span'}
+
# Remove everything after Appendix B
# This includes the license text, the document changelog, the compiler changelog and the footnote
- start_element = at_css('a[name="Appendix-C-_002d-GNU-Free-Documentation-License"]').previous_element
- next_element = start_element.next_element
- until start_element.nil?
- start_element.remove
- start_element = next_element
- next_element = start_element.nil? ? nil : start_element.next_element
+ current_element = at_css('a[name="Appendix-C-_002d-GNU-Free-Documentation-License"]').previous
+ until current_element.nil?
+ next_element = current_element.next
+ current_element.remove
+ current_element = next_element
end
# Make headers bigger
diff --git a/public/icons/docs/gnu_cobol/16.png b/public/icons/docs/gnu_cobol/16.png
new file mode 100644
index 00000000..24a558f1
Binary files /dev/null and b/public/icons/docs/gnu_cobol/16.png differ
diff --git a/public/icons/docs/gnu_cobol/16 2x png b/public/icons/docs/gnu_cobol/16 2x png
new file mode 100644
index 00000000..b87c38a4
Binary files /dev/null and b/public/icons/docs/gnu_cobol/16 2x png differ
diff --git a/public/icons/docs/gnu_cobol/SOURCE b/public/icons/docs/gnu_cobol/SOURCE
new file mode 100644
index 00000000..9aa7d9a2
--- /dev/null
+++ b/public/icons/docs/gnu_cobol/SOURCE
@@ -0,0 +1 @@
+https://sourceforge.net/p/open-cobol/icon
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]