docs: add mermaid to hexdocs

This commit is contained in:
Zach Daniel 2023-04-23 01:03:29 -06:00
parent 9b99ddc1ec
commit 759acb3081

28
mix.exs
View file

@ -98,27 +98,27 @@ defmodule AshStateMachine.MixProject do
name: "AshStateMachine", name: "AshStateMachine",
target: "Ash.Resource", target: "Ash.Resource",
type: "StateMachine Resource" type: "StateMachine Resource"
},
%{
module: AshGraphql.Api,
name: "AshGraphql Api",
target: "Ash.Api",
type: "GraphQL Api"
} }
] ]
], ],
before_closing_body_tag: fn
:html ->
"""
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
<script>mermaid.initialize({startOnLoad: true})</script>
"""
_ ->
""
end,
extras: extras(), extras: extras(),
groups_for_extras: groups_for_extras(), groups_for_extras: groups_for_extras(),
groups_for_modules: [ groups_for_modules: [
AshGraphql: [ Dsl: [
AshGraphql AshStateMachine
], ],
Introspection: [ Charts: [
AshGraphql.Resource.Info, AshStateMachine.Charts
AshGraphql.Api.Info
],
Miscellaneous: [
AshGraphql.Resource.Helpers
], ],
Internals: ~r/.*/ Internals: ~r/.*/
] ]