On Tue, Sep 14, 2010 at 7:51 PM, Tomas Guisasola Gorham
<to...@tecgraf.puc-rio.br>
>        Well, maybe I missed something :-)
>        The names of the files are the names given to LuaDoc, thus if
> you want short names you should change to the directory you want to be
> the "root" of the files given to LuaDoc.  For example, say you have:
>
> some/src/p1.lua
>        /p2.lua
>        /sub/p3.lua
>            /p4.lua
>
>        If you run LuaDoc from 'some' (cd some; luadoc * -d output),
> the files will be named:
>
> src/p1.lua
> src/p2.lua
> src/sub/p3.lua
> src/sub/p4.lua
>
>        But you can cd to 'src' to omit that (cd some/src; luadoc * -d
> output):
>
> p1.lua
> p2.lua
> sub/p3.lua
> sub/p4.lua
>


Ah thanks I got it. You had me confused because you were talking about
LUA_PATH. What you mean is I need to change the "working directory".
That has nothing to do with LUA_PATH. So luadoc generates the
filenames based on its current working directory.

Wouldn't it make sense to have luadoc take the root argument of its
source files as the basis from where it generates the filenames?

So if you invoke:
$ luadoc /some/absolute/path/*

it lists an exiting file like
/some/absolute/path/mymodule/file1.lua

as
mymodule/file1.lua

?

It would be backwards compatible with the current approach of cd-ing
into the root and then executing luadoc.

Cheers, Thijs

_______________________________________________
Kepler-Project mailing list
Kepler-Project@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/

Reply via email to