ruby.rb 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. module Docs
  2. class Ruby < Rdoc
  3. # Generated with:
  4. # ./configure && make html
  5. # or:
  6. # rdoc \
  7. # --root . \
  8. # --page-dir doc \
  9. # --encoding=UTF-8 \
  10. # --visibility=public \
  11. # --format=darkfish \
  12. # --no-line-numbers \
  13. # --op html .
  14. self.links = {
  15. home: 'https://www.ruby-lang.org/',
  16. code: 'https://github.com/ruby/ruby'
  17. }
  18. html_filters.replace 'rdoc/entries', 'ruby/entries'
  19. options[:root_title] = 'Ruby Programming Language'
  20. options[:title] = ->(filter) { filter.slug == 'globals_rdoc' ? 'Globals' : false }
  21. options[:skip] += %w(
  22. contributing_rdoc.html
  23. contributors_rdoc.html
  24. dtrace_probes_rdoc.html
  25. maintainers_rdoc.html
  26. regexp_rdoc.html
  27. standard_library_rdoc.html
  28. syntax_rdoc.html
  29. extension_rdoc.html
  30. extension_ja_rdoc.html
  31. Data.html
  32. English.html
  33. Fcntl.html
  34. Kconv.html
  35. NKF.html
  36. OLEProperty.html
  37. OptParse.html
  38. UnicodeNormalize.html)
  39. options[:skip_patterns] += [
  40. /\Alib\//,
  41. /\ADEBUGGER__/,
  42. /\AException2MessageMapper/,
  43. /\AJSON\/Ext/,
  44. /\AGem/,
  45. /\AHTTP/i,
  46. /\AIRB/,
  47. /\AMakeMakefile/i,
  48. /\ANQXML/,
  49. /\AOptionParser\//,
  50. /\APrettyPrint/,
  51. /\APride/,
  52. /\AProfiler__/,
  53. /\APsych\//,
  54. /\ARacc/,
  55. /\ARake/,
  56. /\ARbConfig/,
  57. /\ARDoc/,
  58. /\AREXML/,
  59. /\ARSS/,
  60. /\AShell\//,
  61. /\ASocket\//,
  62. /\ATest/,
  63. /\AWEBrick/,
  64. /win32/i,
  65. /\AXML/,
  66. /\AXMP/]
  67. options[:attribution] = <<-HTML
  68. Ruby Core &copy; 1993&ndash;2016 Yukihiro Matsumoto<br>
  69. Licensed under the Ruby License.<br>
  70. Ruby Standard Library &copy; contributors<br>
  71. Licensed under their own licenses.
  72. HTML
  73. version '2.2' do
  74. self.release = '2.2.4'
  75. self.dir = '/Users/Thibaut/DevDocs/Docs/RDoc/Ruby22'
  76. end
  77. version '2.3' do
  78. self.release = '2.3.0'
  79. self.dir = '/Users/Thibaut/DevDocs/Docs/RDoc/Ruby23'
  80. end
  81. end
  82. end