diff --git a/.gitignore b/.gitignore index 5b5a9f7..7ff1b30 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *~ +*.scheme _site _org diff --git a/Makefile b/Makefile index 443bdce..7fc5da1 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,19 @@ -.PHONY: org jekyll +.PHONY: default all org org-code jekyll serve -default: org jekyll +default: all + +all: org org-code jekyll org: emacs --batch -u ${USER} -l org-publish.el +org-code: *.org + for org in $?; do \ + emacs --batch -u ${USER} \ + --eval "(require 'org)" \ + --eval "(org-babel-tangle-file \"$$org\")" ; \ + done + jekyll: jekyll build diff --git a/org-publish.el b/org-publish.el index b436e86..403c54f 100644 --- a/org-publish.el +++ b/org-publish.el @@ -10,6 +10,7 @@ :recursive t :publishing-function org-html-publish-to-html :headline-levels 4 + :section-numbers nil :html-extension "html" :with-toc nil :body-only t)