[erlang-questions] Edoc syntax

Per Melin per.melin@REDACTED
Thu Apr 30 14:55:17 CEST 2009


Carl McDade:
> I am having a not so nice time trying to get Edoc to work on Mochiweb files
> or any files for that matter. I am using Windows XP Pro and r13b.
>
> 8> edoc:files("c:/erlang_stuff/mochi/src/mochihex.erl","c:/erlang/doc").
> ** exception error: no function clause matching
>                     filename:do_flatten(99,[])
>      in function  filename:basename/1
>      in call from edoc:expand_files/1
>      in call from edoc:run/3
>

I've never used edoc:files(), but looking at the doc I think this is
want you want:

edoc:files(["c:/erlang_stuff/mochi/src/mochihex.erl"], [{dir,
"c:/erlang/doc"}]).

I prefer edoc:application/3 myself.



More information about the erlang-questions mailing list