From 146b660459f449dd5be0aa0bf2ddeb88e3afaca7 Mon Sep 17 00:00:00 2001 From: belltoy Date: Thu, 31 Jul 2025 17:22:45 +0800 Subject: [PATCH] Load discovered makeup apps for cli --- lib/ex_doc/cli.ex | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/ex_doc/cli.ex b/lib/ex_doc/cli.ex index 5a13e5d67..ed048ed80 100644 --- a/lib/ex_doc/cli.ex +++ b/lib/ex_doc/cli.ex @@ -76,6 +76,13 @@ defmodule ExDoc.CLI do for path <- Keyword.get_values(opts, :paths), path <- Path.wildcard(path) do Code.prepend_path(path) + app(path) |> Application.load() + end + + # Start all applications with the makeup prefix + for {app, _, _} <- Application.loaded_applications(), + match?("makeup_" <> _, Atom.to_string(app)) do + Application.ensure_all_started(app) end opts =