summaryrefslogtreecommitdiff
path: root/bb.edn
blob: 2de8139aee642f950baf5375710905253b8268d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{:tasks
 {serve (shell "hugo" "server" "-D")
  deploy (shell "openrsync --rsync-path=openrsync -av ./public/ qwilfish:/var/www/html/geedeapro")
  build (shell "bb" "./build.clj")
  pub {:depends [build deploy]
       :task (println "Published!")}
  write (let [[slug] *command-line-args*]
          (shell "hugo" "new" "content" (str slug ".md"))
          (shell "nvim" (str "content/" slug ".md")))
  book (let [[title] *command-line-args*]
         (def year (.getYear (java.time.LocalDateTime/now)))
         (shell "bb" "write" (str "library/" year "/" title)))
  make (shell "open https://invidious.nerdvpn.de/watch?v=YjXfjdCmfD4")}}