Update GCC documentation (14.2.0)

pull/2381/head
Simon Legner 2 months ago
parent 7d2346cbcc
commit 4096bf9419

@ -2,7 +2,10 @@ module Docs
class Gnu
class CleanHtmlFilter < Filter
def call
css('.nav-panel', '.copiable-link').remove
heading = at_css('h1, h2, h3, h4, h5')
heading.content = heading.content
doc.prepend_child heading.remove
heading_level = heading.name[/h(\d)/, 1].to_i
css('h2, h3, h4, h5, h6').each do |node|

@ -11,6 +11,7 @@ module Docs
def get_name
name = at_css('h1').content
name.sub! %r{\A([\d\.]*\d)}, '\1.'
name.remove! %r{\s*¶}
name.split('—').first.strip
end

@ -46,13 +46,23 @@ module Docs
'Wtrigraphs.html' => 'Invocation.html'
}
version '14' do
self.release = '14.2.0'
self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/"
end
version '14 CPP' do
self.release = '14.2.0'
self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/"
end
version '13' do
self.release = '13.1.0'
self.release = '13.3.0'
self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/"
end
version '13 CPP' do
self.release = '13.1.0'
self.release = '13.3.0'
self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/"
end

@ -6,8 +6,13 @@ module Docs
home: 'https://gcc.gnu.org/fortran/'
}
version '14' do
self.release = '14.2.0'
self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gfortran/"
end
version '13' do
self.release = '13.1.0'
self.release = '13.3.0'
self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gfortran/"
end

Loading…
Cancel
Save