diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-01-12 18:17:22 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-01-12 21:16:01 +0900 |
commit | 7d94df63c40ba2c2b85344140c9f3da03a05fc72 (patch) | |
tree | c8305c80ed5973590a2b747a1e855d4342aa0794 /lib | |
parent | 39bebd762df97a7206559624f1897121ad5f157d (diff) |
[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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/optparse/optparse.gemspec | 1 |
1 files changed, 1 insertions, 0 deletions
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"] |