Skip to content

Commit b25a000

Browse files
committed
Preload makeup plugins
1 parent db6370d commit b25a000

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/ex_doc/application.ex

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@ defmodule ExDoc.Application do
99
extensions: []
1010
)
1111

12+
# Load applications so we can find their modules in docs
1213
Enum.each([:eex, :ex_unit, :iex, :logger, :mix], &Application.load/1)
14+
15+
# Start all applications with the makeup prefix
16+
for {app, _, _} <- Application.loaded_applications(),
17+
match?("makeup_" <> _, Atom.to_string(app)),
18+
do: Application.ensure_all_started(app)
19+
1320
Supervisor.start_link([ExDoc.Refs], strategy: :one_for_one)
1421
end
1522
end

0 commit comments

Comments
 (0)