Repository navigation
Conversation
olleolleolle
left a comment
There was a problem hiding this comment.
How about keeping the contextual knowledge that _site is chosen for GitHub Pages?
By using `.rdoc_options` to specify the RDoc options, we can make most of the rake task options the in-repo defaults. This allows us to use the same options for both `bundle exec rdoc` and `rake rdoc` and get a consistent experience.
olleolleolle
left a comment
There was a problem hiding this comment.
I liked that the comments follow into the configuration file. I added tiny changes, minor.
Co-authored-by: Olle Jonsson <olle.jonsson@gmail.com>
olleolleolle
left a comment
There was a problem hiding this comment.
Thanks, this is super!
I recommend this be merged!
|
I'd love to see this getting merged so we can move the following to .rdoc_options in Rails: |
| - lib/rdoc/rd/inline_parser.ry | ||
| - lib/rdoc/markdown.kpeg | ||
| - lib/rdoc/markdown/literals.kpeg | ||
| op_dir: _site # for GitHub Pages and should match the config of RDoc task in Rakefile |
There was a problem hiding this comment.
--op-dir option is not saved by --write-options.
Is this expected?
There was a problem hiding this comment.
I don't think it is. But the bigger problem is that the presence of options (and some of their names) are different across Rake task, command line, and .rdoc_options. I think we should do a review and consolidation on them next year.
By using
.rdoc_optionsto specify the RDoc options, we can make most of the rake task options the in-repo defaults.This allows us to use the same options for both
bundle exec rdocandrake rdocand get a consistent experience.Closes #1123