Org code tangling

This commit is contained in:
Correl Roush 2014-05-19 01:23:07 -04:00
parent 8db66297da
commit a662d89454
3 changed files with 13 additions and 2 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
*~ *~
*.scheme
_site _site
_org _org

View file

@ -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: org:
emacs --batch -u ${USER} -l org-publish.el 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:
jekyll build jekyll build

View file

@ -10,6 +10,7 @@
:recursive t :recursive t
:publishing-function org-html-publish-to-html :publishing-function org-html-publish-to-html
:headline-levels 4 :headline-levels 4
:section-numbers nil
:html-extension "html" :html-extension "html"
:with-toc nil :with-toc nil
:body-only t) :body-only t)