File: application.ex

package info (click to toggle)
elixir-ex-doc 0.35.1%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,784 kB
  • sloc: javascript: 2,848; makefile: 15; xml: 12; sh: 5
file content (27 lines) | stat: -rw-r--r-- 717 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
defmodule ExDoc.Application do
  @moduledoc false
  use Application

  def start(_type, _args) do
    Makeup.Registry.register_lexer(ExDoc.ShellLexer,
      options: [],
      names: ["shell", "console", "sh", "bash", "zsh"],
      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)
    end

    children = [
      ExDoc.Refs
    ]

    Supervisor.start_link(children, strategy: :one_for_one)
  end
end