1
0
Эх сурвалжийг харах

Merge pull request #1350 from MasterEnoc/cobol

Update Gnu Cobol to 3.1
Simon Legner 5 жил өмнө
parent
commit
095e6d4bfc

+ 1 - 1
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

+ 6 - 4
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 &copy; 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.<br>
       Licensed under the GNU Free Documentation License.