On Mon, May 16, 2011 at 4:34 AM, Mark Pulford <[email protected]> wrote:
> uses "%doc"). Explicitly listing documentation for the package might
> allow Luarocks to do something more sensible for the target platform.
> Not sure if it's particularly useful, but it's an idea.

Where it could be useful is letting LR know that there is
documentation in a certain place. Then it would be straightforward to
write a 'luarocks docs package' command which would open the browser
at the correct document.

It can be done currently, but only using heuristics - i.e. there is a
docs directory, it contains 'index.html' (or maybe docs contains a
locale-specific directory like 'en' and so forth)

I think that we agree that this kind of incantation is a clumsy and
too inflexible:

$ x-www-browser $(luarocks show --rock-dir package)/docs/index.html

Documentation (like so much else in the Lua world) is somewhat ad-hoc ;)

steve d.

_______________________________________________
Luarocks-developers mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers

Reply via email to