gcc.rb 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 '5' do
  43. self.release = '5.3.0'
  44. self.dir = '/Users/Thibaut/DevDocs/Docs/gcc5'
  45. self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/"
  46. end
  47. version '5 CPP' do
  48. self.release = '5.3.0'
  49. self.dir = '/Users/Thibaut/DevDocs/Docs/gcpp5'
  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 '4' do
  55. self.release = '4.9.3'
  56. self.dir = '/Users/Thibaut/DevDocs/Docs/gcc4'
  57. self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/"
  58. end
  59. version '4 CPP' do
  60. self.release = '4.9.3'
  61. self.dir = '/Users/Thibaut/DevDocs/Docs/gcpp4'
  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. end
  67. end