mirror of
https://github.com/ash-project/ash_phoenix.git
synced 2024-09-20 07:12:49 +12:00
docs: update/refresh docs
This commit is contained in:
parent
d5590c02d5
commit
9c5ea70774
2 changed files with 22 additions and 6 deletions
|
@ -4,6 +4,8 @@ The AshPhoenix plugin adds lots of helpers for working with Phoenix Liveview (an
|
||||||
|
|
||||||
`{:ash_phoenix, "~> 1.2.18"}`
|
`{:ash_phoenix, "~> 1.2.18"}`
|
||||||
|
|
||||||
|
Check out the [getting started with phoenix guide](/documentation/tutorials/getting-started-with-ash-and-phoenix.md) for setup.
|
||||||
|
|
||||||
## Whats in the box?
|
## Whats in the box?
|
||||||
|
|
||||||
- `AshPhoenix.Form` - A form data structure for using resource actions with phoenix forms
|
- `AshPhoenix.Form` - A form data structure for using resource actions with phoenix forms
|
||||||
|
|
24
mix.exs
24
mix.exs
|
@ -62,8 +62,7 @@ defmodule AshPhoenix.MixProject do
|
||||||
path
|
path
|
||||||
|> Path.basename(".md")
|
|> Path.basename(".md")
|
||||||
|> String.split(~r/[-_]/)
|
|> String.split(~r/[-_]/)
|
||||||
|> Enum.map(&String.capitalize/1)
|
|> Enum.map_join(" ", &capitalize/1)
|
||||||
|> Enum.join(" ")
|
|
||||||
|> case do
|
|> case do
|
||||||
"F A Q" ->
|
"F A Q" ->
|
||||||
"FAQ"
|
"FAQ"
|
||||||
|
@ -79,6 +78,15 @@ defmodule AshPhoenix.MixProject do
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
defp capitalize(string) do
|
||||||
|
string
|
||||||
|
|> String.split(" ")
|
||||||
|
|> Enum.map(fn string ->
|
||||||
|
[hd | tail] = String.graphemes(string)
|
||||||
|
String.capitalize(hd) <> Enum.join(tail)
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
|
||||||
defp groups_for_extras do
|
defp groups_for_extras do
|
||||||
[
|
[
|
||||||
Tutorials: [
|
Tutorials: [
|
||||||
|
@ -98,13 +106,19 @@ defmodule AshPhoenix.MixProject do
|
||||||
groups_for_extras: groups_for_extras(),
|
groups_for_extras: groups_for_extras(),
|
||||||
groups_for_modules: [
|
groups_for_modules: [
|
||||||
"Phoenix Helpers": [
|
"Phoenix Helpers": [
|
||||||
|
AshPhoenix.LiveView,
|
||||||
|
AshPhoenix.SubdomainPlug
|
||||||
|
],
|
||||||
|
Forms: [
|
||||||
AshPhoenix.Form,
|
AshPhoenix.Form,
|
||||||
AshPhoenix.Form.Auto,
|
AshPhoenix.Form.Auto,
|
||||||
|
AshPhoenix.Form.WrappedValue,
|
||||||
|
AshPhoenix.FormData.Error
|
||||||
|
],
|
||||||
|
FilterForm: [
|
||||||
AshPhoenix.FilterForm,
|
AshPhoenix.FilterForm,
|
||||||
AshPhoenix.FilterForm.Predicate,
|
AshPhoenix.FilterForm.Predicate,
|
||||||
AshPhoenix.LiveView,
|
AshPhoenix.FilterForm.Arguments
|
||||||
AshPhoenix.FormData.Error,
|
|
||||||
AshPhoenix.SubdomainPlug
|
|
||||||
],
|
],
|
||||||
Errors: [
|
Errors: [
|
||||||
AshPhoenix.Form.InvalidPath,
|
AshPhoenix.Form.InvalidPath,
|
||||||
|
|
Loading…
Reference in a new issue