Skip to content

Commit

Permalink
bw-compat handling of encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
uwiger committed Feb 21, 2014
1 parent 9e80101 commit 98d8b02
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 189 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ incr(X) ->
Rebar customizations
====================
A set of escripts can be found under
[edown/priv/scripts/](http://github.com/esl/edown/blob/uw-stash-links/priv/scripts/), which
[edown/priv/scripts/](http://github.com/esl/edown/blob/master/priv/scripts/), which
can be used to customize the `rebar` built process. The
[rebar.config.script](http://github.com/esl/edown/blob/uw-stash-links/priv/scripts/rebar.config.script)
[rebar.config.script](http://github.com/esl/edown/blob/master/priv/scripts/rebar.config.script)
file should be copied into your application, next to `rebar.config`.
It will sense if `doc` is a current target, and will then include
`edown` in the `deps`; otherwise, it removes it. This way, you will
Expand Down Expand Up @@ -161,7 +161,7 @@ markedoc
The sed script bin/markedoc works in the opposite direction and converts
your `README.md` to an `EDoc` file.

See [bin/MARKEDOC-README.md](http://github.com/esl/edown/blob/uw-stash-links/bin/MARKEDOC-README.md).
See [bin/MARKEDOC-README.md](http://github.com/esl/edown/blob/master/bin/MARKEDOC-README.md).

**FreeBSD, Mac OS X**`$ sed -E -f markedoc.sed <markdown file> > <edoc file>`

Expand All @@ -172,9 +172,9 @@ See [bin/MARKEDOC-README.md](http://github.com/esl/edown/blob/uw-stash-links/bin


<table width="100%" border="0" summary="list of modules">
<tr><td><a href="http://github.com/esl/edown/blob/uw-stash-links/doc/edown_doclet.md" class="module">edown_doclet</a></td></tr>
<tr><td><a href="http://github.com/esl/edown/blob/uw-stash-links/doc/edown_layout.md" class="module">edown_layout</a></td></tr>
<tr><td><a href="http://github.com/esl/edown/blob/uw-stash-links/doc/edown_lib.md" class="module">edown_lib</a></td></tr>
<tr><td><a href="http://github.com/esl/edown/blob/uw-stash-links/doc/edown_make.md" class="module">edown_make</a></td></tr>
<tr><td><a href="http://github.com/esl/edown/blob/uw-stash-links/doc/edown_xmerl.md" class="module">edown_xmerl</a></td></tr></table>
<tr><td><a href="http://github.com/esl/edown/blob/master/doc/edown_doclet.md" class="module">edown_doclet</a></td></tr>
<tr><td><a href="http://github.com/esl/edown/blob/master/doc/edown_layout.md" class="module">edown_layout</a></td></tr>
<tr><td><a href="http://github.com/esl/edown/blob/master/doc/edown_lib.md" class="module">edown_lib</a></td></tr>
<tr><td><a href="http://github.com/esl/edown/blob/master/doc/edown_make.md" class="module">edown_make</a></td></tr>
<tr><td><a href="http://github.com/esl/edown/blob/master/doc/edown_xmerl.md" class="module">edown_xmerl</a></td></tr></table>

180 changes: 0 additions & 180 deletions doc/README.md

This file was deleted.

1 change: 1 addition & 0 deletions doc/edoc-info
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
%% encoding: UTF-8
{application,edown}.
{packages,[]}.
{modules,[edown_doclet,edown_layout,edown_lib,edown_make,edown_xmerl]}.
2 changes: 1 addition & 1 deletion src/edown_doclet.erl
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ write_file(Text, Dir, LastName, Name, P, Enc) ->
end.

encoding(auto, Name) ->
edoc_lib:read_encoding(Name);
edoc_lib:read_encoding(Name, []);
encoding(Enc, _) ->
Enc.

Expand Down

0 comments on commit 98d8b02

Please sign in to comment.