non c'è più tempo ci vuole un hackrocchio! https://hackrocchio.org
Find a file
2023-04-26 22:04:31 +02:00
.vscode alt 2022-03-29 11:09:49 +02:00
archive/2022 2023 2023-04-26 21:49:24 +02:00
docs minor 2023-04-26 22:04:31 +02:00
theme daje 2023-04-26 22:03:24 +02:00
.gitignore Don’t care for those who ignore you. Care for those who are ignoring others for you. 2020-02-28 23:50:07 +01:00
mkdocs.yml 2023 2023-04-26 21:49:24 +02:00
README.md readme docs 2022-02-15 16:49:40 +01:00

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