cose matte

lesion 3119e5dfc7 pranzo 10 months ago
.vscode f5ac450c6a alt 2 years ago
archive 12b7f4af42 2023 11 months ago
docs 3119e5dfc7 pranzo 10 months ago
theme b1693bda22 daje 11 months ago
.gitignore e67af21609 Don’t care for those who ignore you. Care for those who are ignoring others for you. 4 years ago
README.md 17165d1430 readme docs 2 years ago
mkdocs.yml 524ea5bb41 archivio il 2022, aggiorno banner 11 months ago

README.md

Sito di hackrocchio

Fatto con mkdocs.
Puoi cambiare i testi dei markdown anche qui, poi qualcuno fara' il deploy.

Deploy

niente CI, niente webhook, devi mettere questo qui sotto in .git/hooks/pre-push e renderlo +x

#!/bin/sh
remoteUser="root"
remoteServer="castro.cose.belle"
remotePath="/var/www/hackrocchio"
localPath="./site/"
buildCmd="mkdocs build"

current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')

if [ $current_branch = "master" ]; then
  $buildCmd
  echo Updating files...
  rsync -rzhe ssh --delete --filter=':- .gitignore' ./site/ $remoteUser@$remoteServer:$remotePath
fi

# and you're done!
exit 0