Skip to content

Commit beaee37

Browse files
committed
revert: nest only markdown files
1 parent 3d34f2e commit beaee37

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/mix/tasks/docs.ex

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -656,10 +656,13 @@ defmodule Mix.Tasks.Docs do
656656
Keyword.put(options, :formatters, formatters)
657657
end
658658

659-
defp update_output_for_formatter(options, formatter) do
659+
defp update_output_for_formatter(options, "markdown") do
660660
output = options[:output] || "doc"
661-
formatter_output = Path.join(output, formatter)
662-
Keyword.put(options, :output, formatter_output)
661+
Keyword.put(options, :output, Path.join(output, "markdown"))
662+
end
663+
664+
defp update_output_for_formatter(options, _formatter) do
665+
options
663666
end
664667

665668
defp get_docs_opts(config) do

0 commit comments

Comments
 (0)