Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Commit

Permalink
removed debug printout
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulf Wiger committed Oct 22, 2010
1 parent 4651863 commit ee3e9c5
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 20 deletions.
4 changes: 1 addition & 3 deletions README
Expand Up @@ -13,9 +13,7 @@ which do not point to the .md files.

To generate markdown edoc, run:

<pre>
edoc:application(App, [{doclet, edown_doclet} | OtherOpts]).
</pre>
`edoc:application(App, [{doclet, edown_doclet} | OtherOpts]).`

The `edown_xmerl` module is used as an xmerl export module.
It converts xmerl's "simple xml" to Markdown syntax. Note that
Expand Down
2 changes: 1 addition & 1 deletion doc/edown_doclet.md
Expand Up @@ -143,4 +143,4 @@ Specifies the title of the overview-page.
<table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table>
</div>

_Generated by EDoc, Oct 22 2010, 16:40:48._
_Generated by EDoc, Oct 22 2010, 16:54:32._
2 changes: 1 addition & 1 deletion doc/edown_layout.md
Expand Up @@ -118,4 +118,4 @@ __See also:__ [edoc:layout/2](edoc.html#layout-2).
<table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table>
</div>

_Generated by EDoc, Oct 22 2010, 16:40:48._
_Generated by EDoc, Oct 22 2010, 16:54:32._
2 changes: 1 addition & 1 deletion doc/edown_lib.md
Expand Up @@ -42,4 +42,4 @@ Github-flavored Markdown for EDoc - common support functions
<table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table>
</div>

_Generated by EDoc, Oct 22 2010, 16:40:48._
_Generated by EDoc, Oct 22 2010, 16:54:32._
2 changes: 1 addition & 1 deletion doc/edown_test.md
Expand Up @@ -37,4 +37,4 @@ test module.
<table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table>
</div>

_Generated by EDoc, Oct 22 2010, 16:40:48._
_Generated by EDoc, Oct 22 2010, 16:54:32._
2 changes: 1 addition & 1 deletion doc/edown_xmerl.md
Expand Up @@ -62,4 +62,4 @@ __Authors:__ Ulf Wiger ([`ulf.wiger@erlang-solutions.com`](mailto:ulf.wiger@erla
<table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table>
</div>

_Generated by EDoc, Oct 22 2010, 16:40:48._
_Generated by EDoc, Oct 22 2010, 16:54:32._
14 changes: 2 additions & 12 deletions src/edown_doclet.erl
Expand Up @@ -127,21 +127,14 @@ gen(Sources, App, Packages, Modules, FileMap, Ctxt) ->
| Options0],
Title = title(App, Options),
%% CSS = stylesheet(Options),
io:fwrite("sources...~n", []),
{Modules1, Error} = sources(Sources, Dir, Modules, Env, Options),
io:fwrite("packages...~n", []),
packages(Packages, Dir, FileMap, Env, Options),
io:fwrite("overview...~n", []),
Overview = overview(Dir, Title, Env, Options),
Data =
[{title, [Title]},
hr]
++ Overview
Overview
++ lists:concat([packages_frame(Packages) || Packages =/= []])
++ lists:concat([modules_frame(Modules1) || Modules1 =/= []]),

io:fwrite("*************~nData = ~p~n*************~n", [Data]),

Text = xmerl:export_simple_content(Data, edown_xmerl),
edoc_lib:write_file(Text, Dir, ?INDEX_FILE),
edoc_lib:write_info_file(App, Packages, Modules1, Dir),
Expand Down Expand Up @@ -192,17 +185,14 @@ sources(Sources, Dir, Modules, Env, Options) ->

source({M, P, Name, Path}, Dir, Suffix, Env, Set, Private, Hidden,
Error, Options) ->
io:fwrite("source: ~p...~n", [Name]),
File = filename:join(Path, Name),
case catch {ok, edoc:get_doc(File, Env, Options)} of
{ok, {Module, Doc}} ->
io:fwrite("get_doc() ok~n", []),
check_name(Module, M, P, File),
case ((not is_private(Doc)) orelse Private)
andalso ((not is_hidden(Doc)) orelse Hidden) of
true ->
Text = edoc:layout(Doc, Options),
io:fwrite("edoc:layout() ok~n", []),
Name1 = packages:last(M) ++ Suffix,
edoc_lib:write_file(Text, Dir, Name1, P),
{sets:add_element(Module, Set), Error};
Expand Down Expand Up @@ -323,7 +313,7 @@ overview(Dir, Title, Env, Opts) ->
F = fun (M) ->
M:overview(Data, Opts)
end,
Markdown = edoc_lib:run_layout(F, Opts).
_Markdown = edoc_lib:run_layout(F, Opts).
%% edoc_lib:write_file(Text, Dir, ?OVERVIEW_SUMMARY).


Expand Down

0 comments on commit ee3e9c5

Please sign in to comment.