docs: update/refresh docs

This commit is contained in:
Zach Daniel 2023-09-26 08:56:36 -04:00
parent d5590c02d5
commit 9c5ea70774
2 changed files with 22 additions and 6 deletions

View file

@ -4,6 +4,8 @@ The AshPhoenix plugin adds lots of helpers for working with Phoenix Liveview (an
`{: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?
- `AshPhoenix.Form` - A form data structure for using resource actions with phoenix forms

24
mix.exs
View file

@ -62,8 +62,7 @@ defmodule AshPhoenix.MixProject do
path
|> Path.basename(".md")
|> String.split(~r/[-_]/)
|> Enum.map(&String.capitalize/1)
|> Enum.join(" ")
|> Enum.map_join(" ", &capitalize/1)
|> case do
"F A Q" ->
"FAQ"
@ -79,6 +78,15 @@ defmodule AshPhoenix.MixProject do
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
[
Tutorials: [
@ -98,13 +106,19 @@ defmodule AshPhoenix.MixProject do
groups_for_extras: groups_for_extras(),
groups_for_modules: [
"Phoenix Helpers": [
AshPhoenix.LiveView,
AshPhoenix.SubdomainPlug
],
Forms: [
AshPhoenix.Form,
AshPhoenix.Form.Auto,
AshPhoenix.Form.WrappedValue,
AshPhoenix.FormData.Error
],
FilterForm: [
AshPhoenix.FilterForm,
AshPhoenix.FilterForm.Predicate,
AshPhoenix.LiveView,
AshPhoenix.FormData.Error,
AshPhoenix.SubdomainPlug
AshPhoenix.FilterForm.Arguments
],
Errors: [
AshPhoenix.Form.InvalidPath,