From a662d8945462debd43bdc50d947d10dc6d95109a Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Mon, 19 May 2014 01:23:07 -0400 Subject: [PATCH] Org code tangling --- .gitignore | 1 + Makefile | 13 +++++++++++-- org-publish.el | 1 + 3 files changed, 13 insertions(+), 2 deletions(-) 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)