mirror of
https://github.com/correl/sicp.git
synced 2024-11-23 11:09:57 +00:00
Org code tangling
This commit is contained in:
parent
8db66297da
commit
a662d89454
3 changed files with 13 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
*~
|
||||
*.scheme
|
||||
_site
|
||||
_org
|
||||
|
|
13
Makefile
13
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
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue