Publish and ncftp use a cache version
YW6L24ISNOHNZWFUPTUGCKGAGGOQO2H5IYZARK6ST35VGLVXUYDAC
;; Generate a static website using org publish mechanism
;; At the moment, we have 2 ways of publishing org files
;; 1. Using slick (fast but a lot of dependencies) -> used by the main site
;; 2. Using emacs (buil-in but slower) -> used for private notes (this config)
;; Minimal config, see https://systemcrafters.net/publishing-websites-with-org-mode/building-the-site/
;; for the complete configuration
;; Load the publishing system
(require 'ox-publish)
;; Which files to publish ?
(setq org-publish-project-alist
'(("genetique-notes"
:recursive nil
:base-directory "genetique"
:publishing-directory "html/genetique"
:publishing-function org-html-publish-to-html)
("genetique-img"
:base-directory "genetique/img"
:base-extension "png\\|jpg"
:publishing-directory "html/genetique/img"
:publishing-function org-publish-attachment)
("genetique" :components ("genetique-notes" "genetique-img"))))
;; Generate the site output
;; (org-publish-all t) ; force everything
(org-publish-all) ; do not force
(message "Build complete!")
all: genetique
.PHONY: genetique
# -z option is important to avoid re-uploading everything
# it must be at the beginning
genetique:
emacs -Q --script build.el
ncftpput -z -f login.cfg -R . html/genetique