From f57025a35eac0854cf565bb1907e52414f727203 Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Sat, 14 Dec 2024 01:08:28 +0800 Subject: [PATCH] Avoid generating documentation pages for internal components (#1047) --- .document | 6 +++++- Rakefile | 2 -- lib/irb.rb | 2 +- lib/irb/command/base.rb | 10 +++------- 4 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.document b/.document index ab607a7f1..39cee3186 100644 --- a/.document +++ b/.document @@ -1,4 +1,8 @@ LICENSE.txt README.md +EXTEND_IRB.md +COMPARED_WITH_PRY.md doc/irb/indexes.md -lib/**/*.rb +lib/irb.rb +lib/irb/context.rb +lib/irb/command/base.rb diff --git a/Rakefile b/Rakefile index 87c700aba..aaf5a936a 100644 --- a/Rakefile +++ b/Rakefile @@ -46,8 +46,6 @@ task :default => :test RDoc::Task.new do |rdoc| rdoc.title = "IRB" - rdoc.rdoc_files.include("*.md", "lib/**/*.rb") - rdoc.rdoc_files.exclude("lib/irb/xmp.rb") rdoc.rdoc_dir = "docs" rdoc.main = "README.md" rdoc.options.push("--copy-files", "LICENSE.txt") diff --git a/lib/irb.rb b/lib/irb.rb index f5a875d08..de1cdf026 100644 --- a/lib/irb.rb +++ b/lib/irb.rb @@ -879,7 +879,7 @@ module IRB # An exception raised by IRB.irb_abort - class Abort < Exception;end + class Abort < Exception;end # :nodoc: class << self # The current IRB::Context of the session, see IRB.conf diff --git a/lib/irb/command/base.rb b/lib/irb/command/base.rb index af810ed34..2f39b75cc 100644 --- a/lib/irb/command/base.rb +++ b/lib/irb/command/base.rb @@ -5,13 +5,11 @@ # module IRB - # :stopdoc: - module Command - class CommandArgumentError < StandardError; end + class CommandArgumentError < StandardError; end # :nodoc: class << self - def extract_ruby_args(*args, **kwargs) + def extract_ruby_args(*args, **kwargs) # :nodoc: throw :EXTRACT_RUBY_ARGS, [args, kwargs] end end @@ -57,8 +55,6 @@ def execute(arg) end end - Nop = Base + Nop = Base # :nodoc: end - - # :startdoc: end