ash_graphql/lib/doc_index.ex
2022-08-30 19:33:11 -06:00

41 lines
718 B
Elixir

defmodule AshGraphql.DocIndex do
@moduledoc false
use Spark.DocIndex,
otp_app: :ash_graphql,
guides_from: [
"documentation/**/*.md"
]
@impl true
def for_library, do: "ash_graphql"
@impl true
def extensions do
[
%{
module: AshGraphql.Resource,
name: "AshGraphql Resource",
target: "Ash.Resource",
type: "GraphQL Resource"
},
%{
module: AshGraphql.Api,
name: "AshGraphql Api",
target: "Ash.Api",
type: "GraphQL Api"
}
]
end
@impl true
def code_modules do
[
{"Introspection",
[
AshGraphql.Resource.Info,
AshGraphql.Api.Info
]}
]
end
end