Skip to content

Commit bbf4114

Browse files
committed
Merge pull request #216 from milmazz/rm_output_dir
Delete output directory before generate docs.
2 parents 698dbce + df1a30a commit bbf4114

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ex_doc/formatter/html.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ defmodule ExDoc.Formatter.HTML do
1111
"""
1212
def run(modules, config) do
1313
output = Path.expand(config.output)
14+
File.rm_rf! output
1415
:ok = File.mkdir_p output
1516

1617
generate_index(output, config)
@@ -58,7 +59,6 @@ defmodule ExDoc.Formatter.HTML do
5859
end
5960

6061
defp generate_readme(output, modules, config) do
61-
File.rm("#{output}/README.html")
6262
readme_path = Path.expand(config.readme)
6363
write_readme(output, File.read(readme_path), modules, config)
6464
end

0 commit comments

Comments
 (0)