Merge branch 'fix-rtd' into 'master'

Draft: Switch the readthedoc build to Nix

See merge request simple-nixos-mailserver/nixos-mailserver!386
This commit is contained in:
lewo 2025-05-03 16:08:55 +00:00
commit d3cfda3494
2 changed files with 2 additions and 16 deletions

View File

@ -15,15 +15,5 @@ build:
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
build:
- proot -b ~/.nix:/nix /bin/sh -c "nix build -L .#documentation && cp -rv result $READTHEDOCS_OUTPUT/html/"

View File

@ -1,4 +0,0 @@
sphinx ~= 5.3
sphinx_rtd_theme ~= 1.1
myst-parser ~= 0.18
linkify-it-py ~= 2.0