Browse Source

readme docs

lesion 2 years ago
parent
commit
17165d1430
1 changed files with 27 additions and 4 deletions
  1. 27 4
      README.md

+ 27 - 4
README.md

@@ -1,6 +1,29 @@
-Compile scss Style
+### Sito di hackrocchio
 
 
-scss --watch scss/title.scss:css/title.css
+Fatto con [mkdocs](https://www.mkdocs.org/).  
+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`
+
+```sh
+#!/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
+```
 
 
-Quasi tutto è Random !?!
-Cambia ogni volta ^^  che viene compilato...