ruby.rb 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. include FixInternalUrlsBehavior
  15. self.links = {
  16. home: 'https://www.ruby-lang.org/',
  17. code: 'https://github.com/ruby/ruby'
  18. }
  19. html_filters.replace 'rdoc/entries', 'ruby/entries'
  20. options[:root_title] = 'Ruby Programming Language'
  21. options[:title] = ->(filter) { filter.slug == 'globals_rdoc' ? 'Globals' : false }
  22. options[:skip] += %w(
  23. contributing_rdoc.html
  24. contributors_rdoc.html
  25. dtrace_probes_rdoc.html
  26. maintainers_rdoc.html
  27. regexp_rdoc.html
  28. standard_library_rdoc.html
  29. syntax_rdoc.html
  30. extension_rdoc.html
  31. extension_ja_rdoc.html
  32. Data.html
  33. English.html
  34. Fcntl.html
  35. Kconv.html
  36. NKF.html
  37. OLEProperty.html
  38. OptParse.html
  39. UnicodeNormalize.html)
  40. options[:skip_patterns] += [
  41. /\Alib\//,
  42. /\ADEBUGGER__/,
  43. /\AException2MessageMapper/,
  44. /\AJSON\/Ext/,
  45. /\AGem/,
  46. /\AHTTP/i,
  47. /\AIRB/,
  48. /\AMakeMakefile/i,
  49. /\ANQXML/,
  50. /\APride/,
  51. /\AProfiler__/,
  52. /\APsych\//,
  53. /\ARacc/,
  54. /\ARake/,
  55. /\ARbConfig/,
  56. /\ARDoc/,
  57. /\AREXML/,
  58. /\ARSS/,
  59. /\AShell\//,
  60. /\ATest/,
  61. /\AWEBrick/,
  62. /win32/i,
  63. /\AXML/,
  64. /\AXMP/]
  65. options[:attribution] = <<-HTML
  66. Ruby Core &copy; 1993&ndash;2017 Yukihiro Matsumoto<br>
  67. Licensed under the Ruby License.<br>
  68. Ruby Standard Library &copy; contributors<br>
  69. Licensed under their own licenses.
  70. HTML
  71. version '2.4' do
  72. self.release = '2.4.1'
  73. self.dir = '/Users/Thibaut/DevDocs/Docs/RDoc/Ruby24'
  74. end
  75. version '2.3' do
  76. self.release = '2.3.4'
  77. self.dir = '/Users/Thibaut/DevDocs/Docs/RDoc/Ruby23'
  78. end
  79. version '2.2' do
  80. self.release = '2.2.7'
  81. self.dir = '/Users/Thibaut/DevDocs/Docs/RDoc/Ruby22'
  82. end
  83. end
  84. end