docs: make sure that Spark cheatsheets are correctly generated.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
James Harton 2023-09-29 20:13:54 +13:00
parent fa31b20dbd
commit b929429556
Signed by: james
GPG key ID: 90E82DAA13F624F4

27
mix.exs
View file

@ -38,7 +38,32 @@ defmodule Smokestack.MixProject do
type: "Smokestack"
}
]
]
],
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