From 7d94df63c40ba2c2b85344140c9f3da03a05fc72 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 12 Jan 2022 18:17:22 +0900 Subject: [PATCH] [ruby/optparse] Add rdoc options Specify the main page and the page directory. Also in Rakefile, extract and use the same options from the gemspec file. https://github.com/ruby/optparse/commit/d182cd60b5 --- lib/optparse/optparse.gemspec | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/optparse/optparse.gemspec b/lib/optparse/optparse.gemspec index ae6596678c..a4287ddeee 100644 --- a/lib/optparse/optparse.gemspec +++ b/lib/optparse/optparse.gemspec @@ -23,6 +23,7 @@ Gem::Specification.new do |spec| spec.metadata["source_code_uri"] = spec.homepage spec.files = Dir["{doc,lib,misc}/**/*"] + %w[README.md ChangeLog COPYING] + spec.rdoc_options = ["--main=README.md", "--op=rdoc", "--page-dir=doc"] spec.bindir = "exe" spec.executables = [] spec.require_paths = ["lib"]