docs: add DSL cheat sheets to the sidebar.
This commit is contained in:
parent
83ff64f256
commit
86c573d37e
23
mix.exs
23
mix.exs
|
@ -38,7 +38,28 @@ defmodule AshCubDB.MixProject do
|
||||||
type: "Ash.DataLayer"
|
type: "Ash.DataLayer"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
]
|
],
|
||||||
|
extras:
|
||||||
|
["README.md"]
|
||||||
|
|> Enum.concat(Path.wildcard("documentation/**/*.{md,livemd,cheatmd}"))
|
||||||
|
|> Enum.map(fn
|
||||||
|
"README.md" -> {:"README.md", title: "Read Me", ash_hq?: false}
|
||||||
|
"documentation/" <> _ = path -> {String.to_atom(path), []}
|
||||||
|
end),
|
||||||
|
groups_for_extras:
|
||||||
|
"documentation/*"
|
||||||
|
|> Path.wildcard()
|
||||||
|
|> Enum.map(fn dir ->
|
||||||
|
name =
|
||||||
|
dir
|
||||||
|
|> Path.split()
|
||||||
|
|> List.last()
|
||||||
|
|> String.split(~r/_+/)
|
||||||
|
|> Enum.map_join(" ", &String.capitalize/1)
|
||||||
|
|
||||||
|
files = dir |> Path.join("**.{md,livemd,cheatmd}") |> Path.wildcard()
|
||||||
|
{name, files}
|
||||||
|
end)
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue