gcc.rb 3.2 KB

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