lib/doc_index.ex

defmodule AshPostgres.DocIndex do
  @moduledoc """
  Some documentation about AshPostgres.
  """
  use Ash.DocIndex,
    guides_from: [
      "documentation/**/*.md"
    ]

  def for_library, do: "ash_postgres"

  def extensions do
    [
      %{
        module: AshPostgres.DataLayer,
        name: "AshPostgres",
        target: "Ash.Resource",
        type: "DataLayer"
      }
    ]
  end

  def default_guide, do: "AshPostgres"

  def code_modules, do: []
end