File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
lib/ex_doc/formatter/html
test/ex_doc/formatter/html Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,11 @@ defmodule ExDoc.Formatter.HTML.SearchData do
15
15
16
16
data = % {
17
17
items: items ,
18
- content_type: content_type
18
+ content_type: content_type ,
19
+ producer: % {
20
+ name: "ex_doc" ,
21
+ version: Application . spec ( :ex_doc ) [ :vsn ]
22
+ }
19
23
}
20
24
21
25
[ "searchData=" | ExDoc.Utils . to_json ( data ) ]
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ defmodule ExDoc.Formatter.HTML.SearchDataTest do
21
21
config = % ExDoc.Config { output: "#{ c . tmp_dir } /doc" }
22
22
data = search_data ( modules , config )
23
23
assert data [ "content_type" ] == "text/markdown"
24
+ assert data [ "producer" ] [ "name" ] == "ex_doc"
24
25
[ item1 , item2 ] = data [ "items" ]
25
26
26
27
assert item1 [ "ref" ] == "SearchFoo.html"
You can’t perform that action at this time.
0 commit comments