Skip to content

Commit 4096bf9

Browse files
committed
Update GCC documentation (14.2.0)
1 parent 7d2346c commit 4096bf9

File tree

4 files changed

+22
-3
lines changed

4 files changed

+22
-3
lines changed

lib/docs/filters/gnu/clean_html.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ module Docs
22
class Gnu
33
class CleanHtmlFilter < Filter
44
def call
5+
css('.nav-panel', '.copiable-link').remove
56
heading = at_css('h1, h2, h3, h4, h5')
7+
heading.content = heading.content
8+
doc.prepend_child heading.remove
69
heading_level = heading.name[/h(\d)/, 1].to_i
710

811
css('h2, h3, h4, h5, h6').each do |node|

lib/docs/filters/gnu/entries.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ def initialize(*)
1111
def get_name
1212
name = at_css('h1').content
1313
name.sub! %r{\A([\d\.]*\d)}, '\1.'
14+
name.remove! %r{\s*¶}
1415
name.split('—').first.strip
1516
end
1617

lib/docs/scrapers/gnu/gcc.rb

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,23 @@ class Gcc < Gnu
4646
'Wtrigraphs.html' => 'Invocation.html'
4747
}
4848

49+
version '14' do
50+
self.release = '14.2.0'
51+
self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/"
52+
end
53+
54+
version '14 CPP' do
55+
self.release = '14.2.0'
56+
self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/"
57+
end
58+
4959
version '13' do
50-
self.release = '13.1.0'
60+
self.release = '13.3.0'
5161
self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/"
5262
end
5363

5464
version '13 CPP' do
55-
self.release = '13.1.0'
65+
self.release = '13.3.0'
5666
self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/"
5767
end
5868

lib/docs/scrapers/gnu/gnu_fortran.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ class GnuFortran < Gnu
66
home: 'https://gcc.gnu.org/fortran/'
77
}
88

9+
version '14' do
10+
self.release = '14.2.0'
11+
self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gfortran/"
12+
end
13+
914
version '13' do
10-
self.release = '13.1.0'
15+
self.release = '13.3.0'
1116
self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gfortran/"
1217
end
1318

0 commit comments

Comments
 (0)