Build pelican sites without publishconf
This commit is contained in:
parent
7b6329be07
commit
ad0377ab84
1 changed files with 4 additions and 10 deletions
|
|
@ -22,17 +22,11 @@ let
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
cd ${workdir}
|
cd ${workdir}
|
||||||
${copyPlugins}
|
${copyPlugins}
|
||||||
conf=""
|
if [ -d content ]; then
|
||||||
if [ -f publishconf.py ]; then
|
# Drop draft content before building (Pelican draft detection can be inconsistent).
|
||||||
conf="publishconf.py"
|
grep -RIl '^status:[[:space:]]*draft' content | xargs -r rm -f
|
||||||
elif [ -f pelicanconf.py ]; then
|
|
||||||
conf="pelicanconf.py"
|
|
||||||
fi
|
|
||||||
if [ -n "$conf" ]; then
|
|
||||||
${pythonEnv}/bin/pelican content -o "$out" -s "$conf"
|
|
||||||
else
|
|
||||||
${pythonEnv}/bin/pelican content -o "$out"
|
|
||||||
fi
|
fi
|
||||||
|
${pythonEnv}/bin/pelican content -o "$out"
|
||||||
runHook postBuild
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
installPhase = "true";
|
installPhase = "true";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue