From 69eaef461f84ded1e56b328f9a9cc9369019e883 Mon Sep 17 00:00:00 2001 From: Taimoor Zaeem Date: Wed, 13 Sep 2023 07:18:17 +0500 Subject: [PATCH] nix: add postgrest-docs-check (#676) --- default.nix | 12 +++++++++++- shell.nix | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 42fbaca76..0a54aa523 100644 --- a/default.nix +++ b/default.nix @@ -20,7 +20,7 @@ let python = pkgs.python3.withPackages (ps: [ ps.sphinx ps.sphinx_rtd_theme ps.livereload (sphinxTabsPkg ps) (sphinxCopybuttonPkg ps) ]); in -{ +rec { inherit pkgs; build = @@ -85,4 +85,14 @@ in ${python}/bin/sphinx-build --color -b linkcheck docs _build ''; + + check = + pkgs.writeShellScriptBin "postgrest-docs-check" + '' + set -euo pipefail + ${build}/bin/postgrest-docs-build + ${dictcheck}/bin/postgrest-docs-dictcheck + ${linkcheck}/bin/postgrest-docs-linkcheck + ${spellcheck}/bin/postgrest-docs-spellcheck + ''; } diff --git a/shell.nix b/shell.nix index e8d38d96e..2bb41b928 100644 --- a/shell.nix +++ b/shell.nix @@ -14,6 +14,7 @@ pkgs.mkShell { docs.spellcheck docs.dictcheck docs.linkcheck + docs.check ]; shellHook = ''