nix: add postgrest-docs-check (#676)

This commit is contained in:
Taimoor Zaeem
2023-09-12 23:18:17 -03:00
committed by GitHub
parent 50c87fec88
commit 69eaef461f
2 changed files with 12 additions and 1 deletions
+11 -1
View File
@@ -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
'';
}
+1
View File
@@ -14,6 +14,7 @@ pkgs.mkShell {
docs.spellcheck
docs.dictcheck
docs.linkcheck
docs.check
];
shellHook = ''