|
| 1 | +module Docs |
| 2 | + class Gcc < Gnu |
| 3 | + self.name = 'GCC' |
| 4 | + self.slug = 'gcc' |
| 5 | + self.links = { |
| 6 | + home: 'https://gcc.gnu.org/' |
| 7 | + } |
| 8 | + |
| 9 | + html_filters.push 'title' |
| 10 | + |
| 11 | + options[:root_title] = 'Using the GNU Compiler Collection (GCC)' |
| 12 | + options[:title] = false |
| 13 | + |
| 14 | + options[:replace_paths] = { |
| 15 | + 'AssemblerTemplate.html' => 'Extended-Asm.html', |
| 16 | + 'AVR-Named-Address-Spaces.html' => 'Named-Address-Spaces.html', |
| 17 | + 'AVR-Variable-Attributes.html' => 'Variable-Attributes.html', |
| 18 | + 'Clobbers.html' => 'Extended-Asm.html', |
| 19 | + 'dashMF.html' => 'Preprocessor-Options.html', |
| 20 | + 'GotoLabels.html' => 'Extended-Asm.html', |
| 21 | + 'InputOperands.html' => 'Extended-Asm.html', |
| 22 | + 'OutputOperands.html' => 'Extended-Asm.html', |
| 23 | + 'PowerPC-Type-Attributes.html' => 'Type-Attributes.html', |
| 24 | + 'SPU-Type-Attributes.html' => 'Type-Attributes.html', |
| 25 | + 'Type_002dpunning.html' => 'Optimize-Options.html', |
| 26 | + 'Volatile.html' => 'Extended-Asm.html', |
| 27 | + 'Wtrigraphs.html' => 'Preprocessor-Options.html', |
| 28 | + 'x86-Type-Attributes.html' => 'Type-Attributes.html', |
| 29 | + 'x86-Variable-Attributes.html' => 'Variable-Attributes.html', |
| 30 | + 'x86floatingpointasmoperands.html' => 'Extended-Asm.html', |
| 31 | + 'x86Operandmodifiers.html' => 'Extended-Asm.html', |
| 32 | + |
| 33 | + 'Example-of-asm-with-clobbered-asm-reg.html' => 'Extended-Asm.html', |
| 34 | + 'Extended-asm-with-goto.html' => 'Extended-Asm.html', |
| 35 | + 'fdollars_002din_002didentifiers.html' => 'Preprocessor-Options.html', |
| 36 | + 'i386-Type-Attributes.html' => 'Variable-Attributes.html', |
| 37 | + 'i386-Variable-Attributes.html' => 'Variable-Attributes.html' |
| 38 | + } |
| 39 | + |
| 40 | + CPP_PATHS = { |
| 41 | + 'dashMF.html' => 'Invocation.html', |
| 42 | + 'fdollars_002din_002didentifiers.html' => 'Invocation.html', |
| 43 | + 'Identifier-characters.html' => 'Implementation_002ddefined-behavior.html', |
| 44 | + 'trigraphs.html' => 'Initial-processing.html', |
| 45 | + 'Wtrigraphs.html' => 'Invocation.html' |
| 46 | + } |
| 47 | + |
| 48 | + version '5' do |
| 49 | + self.release = '5.3.0' |
| 50 | + self.dir = '/Users/Thibaut/DevDocs/Docs/gcc5' |
| 51 | + self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/" |
| 52 | + end |
| 53 | + |
| 54 | + version '5 CPP' do |
| 55 | + self.release = '5.3.0' |
| 56 | + self.dir = '/Users/Thibaut/DevDocs/Docs/gcpp5' |
| 57 | + self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/" |
| 58 | + |
| 59 | + options[:root_title] = false |
| 60 | + options[:replace_paths] = CPP_PATHS |
| 61 | + end |
| 62 | + |
| 63 | + version '4' do |
| 64 | + self.release = '4.9.3' |
| 65 | + self.dir = '/Users/Thibaut/DevDocs/Docs/gcc4' |
| 66 | + self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/" |
| 67 | + end |
| 68 | + |
| 69 | + version '4 CPP' do |
| 70 | + self.release = '4.9.3' |
| 71 | + self.dir = '/Users/Thibaut/DevDocs/Docs/gcpp4' |
| 72 | + self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/" |
| 73 | + |
| 74 | + options[:root_title] = false |
| 75 | + options[:replace_paths] = CPP_PATHS |
| 76 | + end |
| 77 | + end |
| 78 | +end |
0 commit comments