forked from ScoDoc/DocScoDoc
publishing script.
This commit is contained in:
parent
682781661c
commit
191d4a58af
24
tools/publish
Executable file
24
tools/publish
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Compile and publish to web
|
||||||
|
|
||||||
|
if [ ! -e "./docs" ]
|
||||||
|
then
|
||||||
|
echo "Wrong current directory: should be launched from DocScoDoc as"
|
||||||
|
echo " tools/publish"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# --- Build
|
||||||
|
if [ "$1" = "-b" ]
|
||||||
|
then
|
||||||
|
if [ "${CONDA_DEFAULT_ENV}" != "mkdocs" ]
|
||||||
|
then
|
||||||
|
echo "Please active mkdocs :"
|
||||||
|
echo " conda activate mkdocs"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
mkdocs build
|
||||||
|
fi
|
||||||
|
|
||||||
|
# --- Publish
|
||||||
|
rsync -vaze ssh site scodoc.org:/var/www/html
|
Loading…
Reference in New Issue
Block a user