stage + updated readme
This commit is contained in:
parent
0323ab8084
commit
1e64758891
29
stage.sh
Executable file
29
stage.sh
Executable file
@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
OUTPUT=<directory-to-copy-files-to>
|
||||
|
||||
echo "1. sourcing environment"
|
||||
source venv/bin/activate
|
||||
|
||||
echo "2. cleaning output"
|
||||
rm -Rf $OUTPUT/*
|
||||
|
||||
echo "3. pulling all pads"
|
||||
|
||||
pppadump pull --all --force --css ../styles.css --pub out/p --group out/g
|
||||
|
||||
echo "4. pulling __PUBLISH__ pads"
|
||||
|
||||
pppadump pull --html --publish-opt-in --force --css styles.css --pub out/__PUBLISH__
|
||||
|
||||
echo "5. indexing"
|
||||
|
||||
pppadump index input out/p/*.meta.json --title "pppindex" --templatepath templates/ --output $OUTPUT/index.html
|
||||
|
||||
echo "6. copying files"
|
||||
|
||||
cp -r out/* $OUTPUT
|
||||
cp styles/styles.css $OUTPUT/
|
||||
cp styles/styles.css $OUTPUT/__PUBLISH__
|
||||
|
||||
echo "Done."
|
||||
Loading…
x
Reference in New Issue
Block a user