diff --git a/lib/docs/scrapers/gnu/gcc.rb b/lib/docs/scrapers/gnu/gcc.rb index 2aa9da39..9cfcf6a3 100644 --- a/lib/docs/scrapers/gnu/gcc.rb +++ b/lib/docs/scrapers/gnu/gcc.rb @@ -46,13 +46,37 @@ module Docs 'Wtrigraphs.html' => 'Invocation.html' } + version '9' do + self.release = '9.2.0' + self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/" + end + + version '9 CPP' do + self.release = '9.2.0' + self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/" + + options[:replace_paths] = CPP_PATHS + end + + version '8' do + self.release = '8.3.0' + self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/" + end + + version '8 CPP' do + self.release = '8.3.0' + self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/" + + options[:replace_paths] = CPP_PATHS + end + version '7' do - self.release = '7.3.0' + self.release = '7.4.0' self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/" end version '7 CPP' do - self.release = '7.3.0' + self.release = '7.4.0' self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/" options[:replace_paths] = CPP_PATHS