nix: add postgrest-docs-check (#676)
This commit is contained in:
+11
-1
@@ -20,7 +20,7 @@ let
|
|||||||
|
|
||||||
python = pkgs.python3.withPackages (ps: [ ps.sphinx ps.sphinx_rtd_theme ps.livereload (sphinxTabsPkg ps) (sphinxCopybuttonPkg ps) ]);
|
python = pkgs.python3.withPackages (ps: [ ps.sphinx ps.sphinx_rtd_theme ps.livereload (sphinxTabsPkg ps) (sphinxCopybuttonPkg ps) ]);
|
||||||
in
|
in
|
||||||
{
|
rec {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
|
|
||||||
build =
|
build =
|
||||||
@@ -85,4 +85,14 @@ in
|
|||||||
|
|
||||||
${python}/bin/sphinx-build --color -b linkcheck docs _build
|
${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
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user