Skip to content

Commit 7a53ce9

Browse files
committed
Support any String.Chars.t on extras
1 parent d23503f commit 7a53ce9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/ex_doc/formatter/html.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ defmodule ExDoc.Formatter.HTML do
627627
{base, text_to_id(Path.rootname(base))}
628628

629629
{path, opts} ->
630-
base = path |> Atom.to_string() |> Path.basename()
630+
base = path |> to_string() |> Path.basename()
631631
{base, opts[:filename] || text_to_id(Path.rootname(base))}
632632
end)
633633
end

test/ex_doc/formatter/html_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ defmodule ExDoc.Formatter.HTMLTest do
519519
doc_config(context,
520520
extras: [
521521
"test/fixtures/PlainTextFiles.md",
522-
"test/fixtures/LICENSE": [filename: "linked-license"],
522+
{"test/fixtures/LICENSE", filename: "linked-license"},
523523
"test/fixtures/PlainText.txt": [filename: "plain_text"]
524524
]
525525
)

0 commit comments

Comments
 (0)