Skip to content

Commit 305f1e5

Browse files
DavidLiedleclaude
andcommitted
Fix: disable org-babel evaluation during export
org-publish was trying to resolve babel :var references (e.g. data=previous-block) in the chapter code examples, causing export to crash. Since this is a documentation book, code blocks should be displayed verbatim, not executed. Setting org-export-use-babel nil prevents any babel processing during HTML export. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c7f78f6 commit 305f1e5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

publish.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
org-html-validation-link nil
1717
org-html-use-infojs nil
1818
org-export-with-smart-quotes t
19-
org-export-with-sub-superscripts nil)
19+
org-export-with-sub-superscripts nil
20+
;; Never evaluate code blocks during export — this is a book,
21+
;; not a notebook. Blocks are displayed verbatim.
22+
org-export-use-babel nil)
2023

2124
;; Use htmlize for syntax highlighting when available
2225
(when (require 'htmlize nil t)

0 commit comments

Comments
 (0)