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 = ''