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
|
version: 2
|
||||||
|
|
||||||
build:
|
build:
|
||||||
os: ubuntu-22.04
|
os: ubuntu-24.04
|
||||||
tools:
|
tools:
|
||||||
python: "3"
|
python: "3"
|
||||||
apt_packages:
|
apt_packages:
|
||||||
- nix
|
- curl
|
||||||
- proot
|
- proot
|
||||||
jobs:
|
jobs:
|
||||||
pre_install:
|
pre_install:
|
||||||
- mkdir -p ~/.nix ~/.config/nix
|
- curl -L https://github.com/DavHau/nix-portable/releases/latest/download/nix-portable-$(uname -m) > ./nix-portable
|
||||||
- echo "experimental-features = nix-command flakes" > ~/.config/nix/nix.conf
|
- chmod +x ./nix-portable
|
||||||
- proot -b ~/.nix:/nix /bin/sh -c "nix build -L .#optionsDoc && cp -v result docs/options.md"
|
- ./nix-portable nix build --print-build-logs .#optionsDoc
|
||||||
|
- ./nix-portable nix store cat $(readlink result) > docs/options.md
|
||||||
|
|
||||||
sphinx:
|
sphinx:
|
||||||
configuration: docs/conf.py
|
configuration: docs/conf.py
|
||||||
|
|||||||
Reference in New Issue
Block a user