History

Update Gcc scraper

- Add 10.2.0 version - Update previous versions

MasterEnoc committed 5 years ago

Commit fd3b81e1 parent 674dc1e2 files · +40 −12Browse files

Unified · Split

2 files
  1. docs/file-scrapers.md +18 −0
  2. lib/docs/scrapers/gnu/gcc.rb +22 −12
docs/file-scrapers.md+18−0
@@ -35,6 +35,24 @@ Go to https://www.erlang.org/downloads and download the HTML documentation file. · 34 unmodified lines
35## Gnu35## Gnu
36 36
37### GCC37### GCC
38Go 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:
39
40```sh
41# Gcc manual
42wget https://gcc.gnu.org/onlinedocs/gcc-<version>/gcc-html.tar.gz
43# Gcc cpp manual
44wget https://gcc.gnu.org/onlinedocs/gcc-<version>/cpp-html.tar.gz
45```
46
47Then extract the content of the tarball and move it to the devdocs directory.
48
49```sh
50tar xf <tarball>
51# Gcc
52mv <extracted_directory> path/to/devdocs/docs/gcc~<version>/
53# Gcc Cpp
54mv <extracted_directory> path/to/devdocs/docs/gcc~<version>_cpp/
55```
38### GNU Fortran56### GNU Fortran
39 57
40## Gnuplot58## Gnuplot
lib/docs/scrapers/gnu/gcc.rb+22−12
@@ -46,79 +46,89 @@ module Docs · 45 unmodified lines
46 'Wtrigraphs.html' => 'Invocation.html'46 'Wtrigraphs.html' => 'Invocation.html'
47 }47 }
48 48
49 version '10' do
50 self.release = '10.2.0'
51 self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/"
52 end
53
54 version '10 CPP' do
55 self.release = '10.2.0'
56 self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/"
57 end
58
49 version '9' do59 version '9' do
50 self.release = '9.2.0'60 self.release = '9.3.0'
51 self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/"61 self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/"
52 end62 end
53 63
54 version '9 CPP' do64 version '9 CPP' do
55 self.release = '9.2.0'65 self.release = '9.3.0'
56 self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/"66 self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/"
57 67
58 options[:replace_paths] = CPP_PATHS68 options[:replace_paths] = CPP_PATHS
59 end69 end
60 70
61 version '8' do71 version '8' do
62 self.release = '8.3.0'72 self.release = '8.4.0'
63 self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/"73 self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/"
64 end74 end
65 75
66 version '8 CPP' do76 version '8 CPP' do
67 self.release = '8.3.0'77 self.release = '8.4.0'
68 self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/"78 self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/"
69 79
70 options[:replace_paths] = CPP_PATHS80 options[:replace_paths] = CPP_PATHS
71 end81 end
72 82
73 version '7' do83 version '7' do
74 self.release = '7.4.0'84 self.release = '7.5.0'
75 self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/"85 self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/"
76 end86 end
77 87
78 version '7 CPP' do88 version '7 CPP' do
79 self.release = '7.4.0'89 self.release = '7.5.0'
80 self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/"90 self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/"
81 91
82 options[:replace_paths] = CPP_PATHS92 options[:replace_paths] = CPP_PATHS
83 end93 end
84 94
85 version '6' do95 version '6' do
86 self.release = '6.4.0'96 self.release = '6.5.0'
87 self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/"97 self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/"
88 98
89 options[:root_title] = 'Using the GNU Compiler Collection (GCC)'99 options[:root_title] = 'Using the GNU Compiler Collection (GCC)'
90 end100 end
91 101
92 version '6 CPP' do102 version '6 CPP' do
93 self.release = '6.4.0'103 self.release = '6.5.0'
94 self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/"104 self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/"
95 105
96 options[:replace_paths] = CPP_PATHS106 options[:replace_paths] = CPP_PATHS
97 end107 end
98 108
99 version '5' do109 version '5' do
100 self.release = '5.4.0'110 self.release = '5.5.0'
101 self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/"111 self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/"
102 112
103 options[:root_title] = 'Using the GNU Compiler Collection (GCC)'113 options[:root_title] = 'Using the GNU Compiler Collection (GCC)'
104 end114 end
105 115
106 version '5 CPP' do116 version '5 CPP' do
107 self.release = '5.4.0'117 self.release = '5.5.0'
108 self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/"118 self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/"
109 119
110 options[:replace_paths] = CPP_PATHS120 options[:replace_paths] = CPP_PATHS
111 end121 end
112 122
113 version '4' do123 version '4' do
114 self.release = '4.9.3'124 self.release = '4.9.4'
115 self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/"125 self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/"
116 126
117 options[:root_title] = 'Using the GNU Compiler Collection (GCC)'127 options[:root_title] = 'Using the GNU Compiler Collection (GCC)'
118 end128 end
119 129
120 version '4 CPP' do130 version '4 CPP' do
121 self.release = '4.9.3'131 self.release = '4.9.4'
122 self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/"132 self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/"
123 133
124 options[:replace_paths] = CPP_PATHS134 options[:replace_paths] = CPP_PATHS