ruby.rb 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. module Docs
  2. class Ruby < Rdoc
  3. # Generated with:
  4. # rdoc \
  5. # --root . \
  6. # --page-dir doc \
  7. # --encoding=UTF-8 \
  8. # --visibility=public \
  9. # --format=darkfish \
  10. # --no-line-numbers \
  11. # --op html .
  12. self.version = '2.2.1'
  13. self.dir = '/Users/Thibaut/DevDocs/Docs/RDoc/Ruby'
  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. Data.html
  30. English.html
  31. Fcntl.html
  32. Kconv.html
  33. NKF.html
  34. OLEProperty.html
  35. OptParse.html
  36. UnicodeNormalize.html)
  37. options[:skip_patterns] += [
  38. /\Alib\//,
  39. /\ADEBUGGER__/,
  40. /\AException2MessageMapper/,
  41. /\AJSON\/Ext/,
  42. /\AGem/,
  43. /\AHTTP/i,
  44. /\AIRB/,
  45. /\AMakeMakefile/i,
  46. /\ANQXML/,
  47. /\AOptionParser\//,
  48. /\APrettyPrint/,
  49. /\APride/,
  50. /\AProfiler__/,
  51. /\APsych\//,
  52. /\ARacc/,
  53. /\ARake/,
  54. /\ARbConfig/,
  55. /\ARDoc/,
  56. /\AREXML/,
  57. /\ARSS/,
  58. /\AShell\//,
  59. /\ASocket\//,
  60. /\ATest/,
  61. /\AWEBrick/,
  62. /win32/i,
  63. /\AXML/,
  64. /\AXMP/]
  65. options[:attribution] = <<-HTML
  66. Ruby Core &copy; 1993&ndash;2015 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. end
  72. end