Skip to content

Commit

Permalink
Support any String.Chars.t on extras
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Sep 21, 2023
1 parent d23503f commit 7a53ce9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ex_doc/formatter/html.ex
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ defmodule ExDoc.Formatter.HTML do
{base, text_to_id(Path.rootname(base))}

{path, opts} ->
base = path |> Atom.to_string() |> Path.basename()
base = path |> to_string() |> Path.basename()
{base, opts[:filename] || text_to_id(Path.rootname(base))}
end)
end
Expand Down
2 changes: 1 addition & 1 deletion test/ex_doc/formatter/html_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ defmodule ExDoc.Formatter.HTMLTest do
doc_config(context,
extras: [
"test/fixtures/PlainTextFiles.md",
"test/fixtures/LICENSE": [filename: "linked-license"],
{"test/fixtures/LICENSE", filename: "linked-license"},
"test/fixtures/PlainText.txt": [filename: "plain_text"]
]
)
Expand Down

0 comments on commit 7a53ce9

Please sign in to comment.