[devdocsgjs/main: 1238/1867] Update Gnu Cobol to 3.1
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 1238/1867] Update Gnu Cobol to 3.1
- Date: Fri, 19 Nov 2021 23:47:50 +0000 (UTC)
commit 25a3793e8f636f25746cf90a643fc728ea2f29d0
Author: MasterEnoc <brianhernandez222 hotmail com>
Date: Wed Nov 18 18:07:23 2020 -0600
Update Gnu Cobol to 3.1
lib/docs/filters/gnu_cobol/clean_html.rb | 2 +-
lib/docs/scrapers/gnu_cobol.rb | 10 ++++++----
2 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/lib/docs/filters/gnu_cobol/clean_html.rb b/lib/docs/filters/gnu_cobol/clean_html.rb
index 6ac3e7b3..f17cff17 100644
--- a/lib/docs/filters/gnu_cobol/clean_html.rb
+++ b/lib/docs/filters/gnu_cobol/clean_html.rb
@@ -21,7 +21,7 @@ module Docs
# Remove everything after Appendix B
# This includes the license text, the document changelog, the compiler changelog and the footnote
- current_element = at_css('a[name="Appendix-C-_002d-GNU-Free-Documentation-License"]').previous
+ current_element =
at_css('a[name="Appendix-C1-_002d-Grouped-Word-Lists-by-feature-and-function"]').previous
until current_element.nil?
next_element = current_element.next
current_element.remove
diff --git a/lib/docs/scrapers/gnu_cobol.rb b/lib/docs/scrapers/gnu_cobol.rb
index a211ef49..56f2087e 100644
--- a/lib/docs/scrapers/gnu_cobol.rb
+++ b/lib/docs/scrapers/gnu_cobol.rb
@@ -3,15 +3,17 @@ module Docs
self.name = 'GnuCOBOL'
self.slug = 'gnu_cobol'
self.type = 'simple'
- self.release = '2.2'
- self.base_url = 'https://open-cobol.sourceforge.io/HTML/gnucobpg.html'
+ self.release = '3.1'
+ self.base_url = 'https://gnucobol.sourceforge.io/HTML/gnucobpg.html'
self.links = {
- home: 'https://sourceforge.net/projects/open-cobol/',
- code: 'https://sourceforge.net/p/open-cobol/code/HEAD/tree/trunk/'
+ home: 'https://gnucobol.sourceforge.io/',
+ code: 'https://sourceforge.net/p/gnucobol/code/HEAD/tree/trunk/'
}
html_filters.push 'gnu_cobol/entries', 'gnu_cobol/clean_html'
+ options[:skip_links] = true
+
options[:attribution] = <<-HTML
Copyright © 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.<br>
Licensed under the GNU Free Documentation License.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]