docs: update notifier docs

This commit is contained in:
Zach Daniel 2021-03-08 17:19:04 -05:00
parent 72b5a57a25
commit 50f893e8db

View file

@ -1,6 +1,4 @@
defmodule Ash.Notifier.PubSub do
@moduledoc "A pubsub notifier extension"
@publish %Ash.Dsl.Entity{
name: :publish,
target: Ash.Notifier.PubSub.Publication,
@ -89,7 +87,18 @@ defmodule Ash.Notifier.PubSub do
]
}
use Ash.Dsl.Extension, sections: [@pub_sub]
@sections [@pub_sub]
@moduledoc """
A pubsub notifier extension
# Table of Contents
#{Ash.Dsl.Extension.doc_index(@sections)}
#{Ash.Dsl.Extension.doc(@sections)}
"""
use Ash.Dsl.Extension, sections: @sections
def publications(resource) do
Ash.Dsl.Extension.get_entities(resource, [:pub_sub])