Merge branch 'hotfix-docs-build' into 'master'
docs: fix Read the Docs by using portable-nix See merge request simple-nixos-mailserver/nixos-mailserver!460
This commit is contained in:
@@ -5,17 +5,18 @@
|
||||
version: 2
|
||||
|
||||
build:
|
||||
os: ubuntu-22.04
|
||||
os: ubuntu-24.04
|
||||
tools:
|
||||
python: "3"
|
||||
apt_packages:
|
||||
- nix
|
||||
- curl
|
||||
- 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"
|
||||
- curl -L https://github.com/DavHau/nix-portable/releases/latest/download/nix-portable-$(uname -m) > ./nix-portable
|
||||
- chmod +x ./nix-portable
|
||||
- ./nix-portable nix build --print-build-logs .#optionsDoc
|
||||
- ./nix-portable nix store cat $(readlink result) > docs/options.md
|
||||
|
||||
sphinx:
|
||||
configuration: docs/conf.py
|
||||
|
||||
Reference in New Issue
Block a user