docs: refactor diagram, fix doc typos and formatting (#419)

This commit is contained in:
Josh Price 2022-10-17 11:36:37 +11:00 committed by GitHub
parent 6751afc683
commit bb86a13323
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,8 +6,8 @@ defmodule Ash.Api.Info.Diagram do
We can't easily model Ash relationships with Mermaid diagrams We can't easily model Ash relationships with Mermaid diagrams
because they are unidirectional and could be asymmetric. because they are unidirectional and could be asymmetric.
Mermaid assumes symmetrical, biredirectional relationships. Mermaid assumes symmetrical, bidirectional relationships.
If we try to model all unidirectional realtionships as separate If we try to model all unidirectional relationships as separate
lines in the diagram it gets very hard to read very quickly. lines in the diagram it gets very hard to read very quickly.
""" """
@ -82,9 +82,11 @@ defmodule Ash.Api.Info.Diagram do
Ash.Resource.Info.aggregates(resource) Ash.Resource.Info.aggregates(resource)
} }
else else
{Ash.Resource.Info.public_attributes(resource), {
Ash.Resource.Info.public_attributes(resource),
Ash.Resource.Info.public_calculations(resource), Ash.Resource.Info.public_calculations(resource),
Ash.Resource.Info.public_aggregates(resource)} Ash.Resource.Info.public_aggregates(resource)
}
end end
contents = contents =