mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2024-12-27 11:40:32 +05:00
0bbb2ac74e
Generate the file on the readthedocs builder using Nix. Since there is no root access or user namespaces, we have to use proot (see https://nixos.wiki/wiki/Nix_Installation_Guide#PRoot).
30 lines
599 B
YAML
30 lines
599 B
YAML
# Read the Docs configuration file
|
|
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
|
|
|
|
# Required
|
|
version: 2
|
|
|
|
build:
|
|
os: ubuntu-22.04
|
|
tools:
|
|
python: "3"
|
|
apt_packages:
|
|
- nix
|
|
- proot
|
|
jobs:
|
|
pre_install:
|
|
- mkdir -p ~/.nix ~/.config/nix
|
|
- echo "experimental-features = nix-command flakes" > ~/.config/nix/nix.conf
|
|
- proot -b ~/.nix:/nix /bin/sh -c "nix build -L .#optionsDoc && cp -v result docs/options.md"
|
|
|
|
sphinx:
|
|
configuration: docs/conf.py
|
|
|
|
formats:
|
|
- pdf
|
|
- epub
|
|
|
|
python:
|
|
install:
|
|
- requirements: docs/requirements.txt
|