Daniel Siepmann
a3ebd243a8
podman-compose has some issues on ubuntu and with volumes. I'll keep docker-compose. But I prefer podman for t3docs rendering as it doesn't fuck up the file permissions.
24 lines
536 B
Nix
24 lines
536 B
Nix
{
|
|
writeShellApplication,
|
|
podman
|
|
}:
|
|
|
|
writeShellApplication {
|
|
name = "custom-typo3-render-documentation";
|
|
|
|
runtimeInputs = [
|
|
podman
|
|
];
|
|
|
|
# See: https://t3docs.github.io/DRC-The-Docker-Rendering-Container/07-To-be-sorted/quickstart.html#build-html-with-plain-docker-commands
|
|
text = ''
|
|
mkdir -p Documentation-GENERATED-temp
|
|
podman \
|
|
run --rm \
|
|
-v "$(pwd)":/PROJECT:ro \
|
|
-v "$(pwd)/Documentation-GENERATED-temp":/RESULT \
|
|
docker.io/t3docs/render-documentation:latest \
|
|
makehtml
|
|
'';
|
|
}
|