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-04 07:41:55 +00:00
commit 55ca456169
2 changed files with 5 additions and 16 deletions

View File

@ -15,15 +15,8 @@ build:
pre_install: pre_install:
- mkdir -p ~/.nix ~/.config/nix - mkdir -p ~/.nix ~/.config/nix
- echo "experimental-features = nix-command flakes" > ~/.config/nix/nix.conf - 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" build:
html:
sphinx: - proot -b ~/.nix:/nix /bin/sh -c "pwd"
configuration: docs/conf.py - 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/"
formats:
- pdf
- epub
python:
install:
- requirements: docs/requirements.txt

View File

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