diff --git a/docs/file-scrapers.md b/docs/file-scrapers.md index 506e9a59..a225e4c3 100644 --- a/docs/file-scrapers.md +++ b/docs/file-scrapers.md @@ -35,6 +35,24 @@ Go to https://www.erlang.org/downloads and download the HTML documentation file. ## Gnu ### GCC +Go to https://gcc.gnu.org/onlinedocs/ and download the HTML tarball of GCC Manual and GCC CPP manual or run the following commands to download the tarballs: + +```sh +# Gcc manual +wget https://gcc.gnu.org/onlinedocs/gcc-/gcc-html.tar.gz +# Gcc cpp manual +wget https://gcc.gnu.org/onlinedocs/gcc-/cpp-html.tar.gz +``` + +Then extract the content of the tarball and move it to the devdocs directory. + +```sh +tar xf +# Gcc +mv path/to/devdocs/docs/gcc~/ +# Gcc Cpp +mv path/to/devdocs/docs/gcc~_cpp/ +``` ### GNU Fortran ## Gnuplot diff --git a/lib/docs/scrapers/gnu/gcc.rb b/lib/docs/scrapers/gnu/gcc.rb index 9cfcf6a3..21e88872 100644 --- a/lib/docs/scrapers/gnu/gcc.rb +++ b/lib/docs/scrapers/gnu/gcc.rb @@ -46,79 +46,89 @@ module Docs 'Wtrigraphs.html' => 'Invocation.html' } + version '10' do + self.release = '10.2.0' + self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/" + end + + version '10 CPP' do + self.release = '10.2.0' + self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/" + end + version '9' do - self.release = '9.2.0' + self.release = '9.3.0' self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/" end version '9 CPP' do - self.release = '9.2.0' + self.release = '9.3.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.release = '8.4.0' self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/" end version '8 CPP' do - self.release = '8.3.0' + self.release = '8.4.0' self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/" options[:replace_paths] = CPP_PATHS end version '7' do - self.release = '7.4.0' + self.release = '7.5.0' self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/" end version '7 CPP' do - self.release = '7.4.0' + self.release = '7.5.0' self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/" options[:replace_paths] = CPP_PATHS end version '6' do - self.release = '6.4.0' + self.release = '6.5.0' self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/" options[:root_title] = 'Using the GNU Compiler Collection (GCC)' end version '6 CPP' do - self.release = '6.4.0' + self.release = '6.5.0' self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/" options[:replace_paths] = CPP_PATHS end version '5' do - self.release = '5.4.0' + self.release = '5.5.0' self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/" options[:root_title] = 'Using the GNU Compiler Collection (GCC)' end version '5 CPP' do - self.release = '5.4.0' + self.release = '5.5.0' self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/" options[:replace_paths] = CPP_PATHS end version '4' do - self.release = '4.9.3' + self.release = '4.9.4' self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/" options[:root_title] = 'Using the GNU Compiler Collection (GCC)' end version '4 CPP' do - self.release = '4.9.3' + self.release = '4.9.4' self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/" options[:replace_paths] = CPP_PATHS