Skip to content

Commit e9a175e

Browse files
authored
Use markdown format for docs (#890)
* Convert irb.rb's document into markdown format * Hide should-be-private top-level methods from docs * Skip xmp.rb's docs * Declare lib/irb.rb's markup do it works in ruby/ruby too * Ignore docs folder
1 parent 35b87cf commit e9a175e

5 files changed

Lines changed: 619 additions & 589 deletions

File tree

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
/pkg/
66
/spec/reports/
77
/tmp/
8+
/docs/
89
Gemfile.lock

‎Rakefile‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
require "bundler/gem_tasks"
22
require "rake/testtask"
3+
require "rdoc/task"
34

45
Rake::TestTask.new(:test) do |t|
56
t.libs << "test" << "test/lib"
@@ -42,3 +43,11 @@ Rake::TestTask.new(:test_yamatanooroti) do |t|
4243
end
4344

4445
task :default => :test
46+
47+
RDoc::Task.new do |rdoc|
48+
rdoc.title = "IRB"
49+
rdoc.rdoc_files.include("*.md", "lib/**/*.rb")
50+
rdoc.rdoc_files.exclude("lib/irb/xmp.rb")
51+
rdoc.rdoc_dir = "docs"
52+
rdoc.options.push("--copy-files", "LICENSE.txt")
53+
end

0 commit comments

Comments
 (0)