1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[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
This commit is contained in:
Nobuyoshi Nakada 2022-01-12 18:17:22 +09:00
parent 39bebd762d
commit 7d94df63c4
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -23,6 +23,7 @@ Gem::Specification.new do |spec|
spec.metadata["source_code_uri"] = spec.homepage spec.metadata["source_code_uri"] = spec.homepage
spec.files = Dir["{doc,lib,misc}/**/*"] + %w[README.md ChangeLog COPYING] 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.bindir = "exe"
spec.executables = [] spec.executables = []
spec.require_paths = ["lib"] spec.require_paths = ["lib"]