orgmode-octopress
orgmode-octopress copied to clipboard
org-publish-org-to-octopress
I do not know if this is a real issue... pubish fails.
Publishing file /home/xx/octopress/source/org_posts/2013-04-17-first.org using `org-publish-org-to-octopress' org-publish-org-to: Wrong number of arguments: #[(arg &optional ext-plist to-buffer body-only pub-dir)
I'm pretty sure it is an issue. org-mode has been changing a lot about their exporters and I haven't been keeping up. I'll fix it when my course load reduces.
You need the unused param hidden, I think...I compared to the org-html.el shown below.
(defun org-export-as-octopress (arg &optional hidden ext-plist
to-buffer body-only pub-dir)
org-html.el
(defun org-export-as-html (arg &optional hidden ext-plist
to-buffer body-only pub-dir)
"Export the outline as a pretty HTML file.e
If there is an active region, export only the region. The prefix
ARG specifies how many levels of the outline should become
headlines. The default is 3. Lower levels will become bulleted
lists. HIDDEN is obsolete and does nothing.
EXT-PLIST is a property list with external parameters overriding
org-mode's default settings, but still inferior to file-local
settings. When TO-BUFFER is non-nil, create a buffer with that
name and export to that buffer. If TO-BUFFER is the symbol
`string', don't leave any buffer behind but just return the
resulting HTML as a string. When BODY-ONLY is set, don't produce
the file header and footer, simply return the content of
<body>...</body>, without even the body tags themselves. When
PUB-DIR is set, use this as the publishing directory."