nixos-mailserver/.readthedocs.yaml

23 lines
610 B
YAML
Raw Normal View History

# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
# Required
version: 2
build:
2022-11-30 22:30:45 +01:00
os: ubuntu-22.04
tools:
2022-11-30 22:30:45 +01:00
python: "3"
apt_packages:
- nix
- proot
jobs:
pre_install:
- mkdir -p ~/.nix ~/.config/nix
- echo "experimental-features = nix-command flakes" > ~/.config/nix/nix.conf
2025-05-03 17:49:09 +02:00
build:
html:
- proot -b ~/.nix:/nix /bin/sh -c "pwd"
- proot -b ~/.nix:/nix /bin/sh -c "ls -l ./"
- proot -b ~/.nix:/nix /bin/sh -c "nix build -L .#documentation && cp -rv result $READTHEDOCS_OUTPUT/html/"