Closed ohrite closed 11 years ago
Thanks for adding this!
This is an API-breaking change so we probably want to bump the minor version, add something to gem announce for deprecation, and then leave something in fdoc_to_html
that proxies to the new one (also with a deprecation warning).
Oh, good point! I'll add in a proxy now.
Going to merge this, then add the deprecation warning, version bump myself. Thanks!
Most modern Ruby CLI apps use Thor to build out their frontend. Thor provides a lot of nice messaging and convenience for building a generator. Given that fdoc has a CLI and it's a generator, this seems like a great fit!
The important bits:
fdoc_to_html
tofdoc
, with a single action calledconvert
-u/--url-base-path
-o/--output
../html
based on normal usage, so fordocs/fdoc
it generatesdocs/html