Skip to content

Commit

Permalink
Preload makeup plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Sep 1, 2021
1 parent db6370d commit b25a000
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/ex_doc/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ defmodule ExDoc.Application do
extensions: []
)

# Load applications so we can find their modules in docs
Enum.each([:eex, :ex_unit, :iex, :logger, :mix], &Application.load/1)

# Start all applications with the makeup prefix
for {app, _, _} <- Application.loaded_applications(),
match?("makeup_" <> _, Atom.to_string(app)),
do: Application.ensure_all_started(app)

Supervisor.start_link([ExDoc.Refs], strategy: :one_for_one)
end
end

0 comments on commit b25a000

Please sign in to comment.