* Publishing to html With the New Exporter
@ 2013-02-18 12:51 Ian Barton
2013-02-18 13:54 ` Nicolas Goaziou
0 siblings, 1 reply; 6+ messages in thread
From: Ian Barton @ 2013-02-18 12:51 UTC (permalink / raw)
To: emacs-orgmode
I am trying to change my publishing setup over to use the new exporter.
With the recent merge and change of names from -e-backend to -ox-backend
I am a bit confused as to how I should set up my publishing alist.
I have tried:
#+begin_example
(require 'ox-html)
(require 'ox-publish)
;;(require 'org-publish)
(setq org-publish-project-alist
'(
("org-static-ian"
:base-directory "~/Dropbox/web_sites/ianbarton/org/_posts"
:base-extension
"css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|php"
:publishing-directory
"~/Dropbox/web_sites/ianbarton/pelican/blog/content"
:recursive t
:publishing-function org-ox-publish-attachment)
("org-ianbarton"
:base-directory "~/Dropbox/web_sites/ianbarton/org/_posts"
:base-extension "org"
:publishing-directory
"~/Dropbox/web_sites/ianbarton/pelican/blog/content"
:recursive t
:publishing-function org-ox-html-publish-to-html
:headline-levels 4 ; Just the default for this
project.
:auto-preamble t
:auto-index f
:html-extension "yml"
:auto-preamble t
:body-only t
)
("ianbarton" :components ("org-ianbarton" "org-static-ian"))
))
#+end_example
However, org-ox-html-publish-to-html isn't defined anywhere. Browsing
through ox-publish.el it seems I should be using org-publish-org-to to
with a symbol, but I can't seem to manage to find the correct syntax.
Can anyone enlighten me?
Ian.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Publishing to html With the New Exporter
2013-02-18 12:51 Publishing to html With the New Exporter Ian Barton
@ 2013-02-18 13:54 ` Nicolas Goaziou
2013-02-18 14:58 ` Ian Barton
2013-03-13 11:40 ` Eric S Fraga
0 siblings, 2 replies; 6+ messages in thread
From: Nicolas Goaziou @ 2013-02-18 13:54 UTC (permalink / raw)
To: ian; +Cc: emacs-orgmode
Hello,
Ian Barton <lists@wilkesley.net> writes:
> I am trying to change my publishing setup over to use the new exporter.
> With the recent merge and change of names from -e-backend to -ox-backend
> I am a bit confused as to how I should set up my publishing alist.
>
> I have tried:
>
> #+begin_example
>
> (require 'ox-html)
> (require 'ox-publish)
FWIW, (require 'ox-html) also requires 'ox-publish.
> ;;(require 'org-publish)
> (setq org-publish-project-alist
> '(
>
>
>
>
> ("org-static-ian"
> :base-directory "~/Dropbox/web_sites/ianbarton/org/_posts"
> :base-extension
> "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|php"
> :publishing-directory
> "~/Dropbox/web_sites/ianbarton/pelican/blog/content"
> :recursive t
> :publishing-function org-ox-publish-attachment)
This should be `org-html-publish-to-html'.
>
>
> ("org-ianbarton"
> :base-directory "~/Dropbox/web_sites/ianbarton/org/_posts"
> :base-extension "org"
> :publishing-directory
> "~/Dropbox/web_sites/ianbarton/pelican/blog/content"
> :recursive t
> :publishing-function org-ox-html-publish-to-html
> :headline-levels 4 ; Just the default for this
> project.
> :auto-preamble t
> :auto-index f
> :html-extension "yml"
> :auto-preamble t
> :body-only t
> )
>
> ("ianbarton" :components ("org-ianbarton" "org-static-ian"))
>
>
>
>
> ))
>
> #+end_example
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Publishing to html With the New Exporter
2013-02-18 13:54 ` Nicolas Goaziou
@ 2013-02-18 14:58 ` Ian Barton
2013-02-18 17:25 ` Nicolas Goaziou
2013-03-13 11:40 ` Eric S Fraga
1 sibling, 1 reply; 6+ messages in thread
From: Ian Barton @ 2013-02-18 14:58 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: ian, emacs-orgmode
On 18/02/13 13:54, Nicolas Goaziou wrote:
> Hello,
>
> Ian Barton <lists@wilkesley.net> writes:
>
>> I am trying to change my publishing setup over to use the new exporter.
>> With the recent merge and change of names from -e-backend to -ox-backend
>> I am a bit confused as to how I should set up my publishing alist.
>>
>> I have tried:
>>
>> #+begin_example
>>
>> (require 'ox-html)
>> (require 'ox-publish)
>
> FWIW, (require 'ox-html) also requires 'ox-publish.
>
>> ;;(require 'org-publish)
>> (setq org-publish-project-alist
>> '(
>>
>>
>>
>>
>> ("org-static-ian"
>> :base-directory "~/Dropbox/web_sites/ianbarton/org/_posts"
>> :base-extension
>> "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|php"
>> :publishing-directory
>> "~/Dropbox/web_sites/ianbarton/pelican/blog/content"
>> :recursive t
>> :publishing-function org-ox-publish-attachment)
>
> This should be `org-html-publish-to-html'.
>
>>
>>
>> ("org-ianbarton"
>> :base-directory "~/Dropbox/web_sites/ianbarton/org/_posts"
>> :base-extension "org"
>> :publishing-directory
>> "~/Dropbox/web_sites/ianbarton/pelican/blog/content"
>> :recursive t
>> :publishing-function org-ox-html-publish-to-html
>> :headline-levels 4 ; Just the default for this
>> project.
>> :auto-preamble t
>> :auto-index f
>> :html-extension "yml"
>> :auto-preamble t
>> :body-only t
>> )
>>
>> ("ianbarton" :components ("org-ianbarton" "org-static-ian"))
>>
>>
>>
>>
>> ))
>>
>> #+end_example
>
Thanks, I had already tried `org-html-publish-to-html, but got the
following backtrace:
Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil)
org-export-to-file(html
"/home/ian/Dropbox/web_sites/ianbarton/pelican/blog/content/2012-12-31-test.html"
nil nil t (:base-directory "~/Dropbox/web_sites/ianbarton/org/_posts"
:base-extension "org" :publishing-directory
"~/Dropbox/web_sites/ianbarton/pelican/blog/content" :recursive t
:publishing-function org-html-publish-to-html :headline-levels 4
:auto-preamble t :auto-index f :html-extension "yml" :auto-preamble t
:body-only t :filter-parse-tree (org-publish-collect-index)))
org-publish-org-to(html
"/home/ian/Dropbox/web_sites/ianbarton/org/_posts/2012-12-31-test.org"
".html" (:base-directory "~/Dropbox/web_sites/ianbarton/org/_posts"
:base-extension "org" :publishing-directory
"~/Dropbox/web_sites/ianbarton/pelican/blog/content" :recursive t
:publishing-function org-html-publish-to-html :headline-levels 4
:auto-preamble t :auto-index f :html-extension "yml" :auto-preamble t
:body-only t) "/home/ian/Dropbox/web_sites/ianbarton/pelican/blog/content/")
org-html-publish-to-html((:base-directory
"~/Dropbox/web_sites/ianbarton/org/_posts" :base-extension "org"
:publishing-directory
"~/Dropbox/web_sites/ianbarton/pelican/blog/content" :recursive t
:publishing-function org-html-publish-to-html :headline-levels 4
:auto-preamble t :auto-index f :html-extension "yml" :auto-preamble t
:body-only t)
"/home/ian/Dropbox/web_sites/ianbarton/org/_posts/2012-12-31-test.org"
"/home/ian/Dropbox/web_sites/ianbarton/pelican/blog/content/")
org-publish-file("/home/ian/Dropbox/web_sites/ianbarton/org/_posts/2012-12-31-test.org"
("org-ianbarton" :base-directory
"~/Dropbox/web_sites/ianbarton/org/_posts" :base-extension "org"
:publishing-directory
"~/Dropbox/web_sites/ianbarton/pelican/blog/content" :recursive t
:publishing-function org-html-publish-to-html :headline-levels 4
:auto-preamble t :auto-index f :html-extension "yml" :auto-preamble t
:body-only t) t)
#[(project) "\306\b@!\210\bA\x19\307 \310\"\x1a\307 \311\"^[\307 \312\"\206\x1a
A bit more investigating showed that the file causing the problem was a
blank .org file with no content at all. Removing this fixed the problem
and I can now export! I don't know if not being able to handle files
with no content should be considered a bug or not.
Ian.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Publishing to html With the New Exporter
2013-02-18 14:58 ` Ian Barton
@ 2013-02-18 17:25 ` Nicolas Goaziou
2013-02-18 17:45 ` Ian Barton
0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2013-02-18 17:25 UTC (permalink / raw)
To: ian; +Cc: emacs-orgmode
Ian Barton <lists@wilkesley.net> writes:
> A bit more investigating showed that the file causing the problem was
> a blank .org file with no content at all. Removing this fixed the
> problem and I can now export! I don't know if not being able to handle
> files with no content should be considered a bug or not.
There was a bug in org-element.el, which returned an error when parsing
an empty file. I fixed it a few days ago. Is your Org version recent
enough?
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Publishing to html With the New Exporter
2013-02-18 17:25 ` Nicolas Goaziou
@ 2013-02-18 17:45 ` Ian Barton
0 siblings, 0 replies; 6+ messages in thread
From: Ian Barton @ 2013-02-18 17:45 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: ian, emacs-orgmode
On 18/02/13 17:25, Nicolas Goaziou wrote:
> Ian Barton <lists@wilkesley.net> writes:
>
>> A bit more investigating showed that the file causing the problem was
>> a blank .org file with no content at all. Removing this fixed the
>> problem and I can now export! I don't know if not being able to handle
>> files with no content should be considered a bug or not.
>
> There was a bug in org-element.el, which returned an error when parsing
> an empty file. I fixed it a few days ago. Is your Org version recent
> enough?
>
>
My org was about a week old. I have just pulled again and the error with
the empty file has gone.
Best wishes,
Ian.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Publishing to html With the New Exporter
2013-02-18 13:54 ` Nicolas Goaziou
2013-02-18 14:58 ` Ian Barton
@ 2013-03-13 11:40 ` Eric S Fraga
1 sibling, 0 replies; 6+ messages in thread
From: Eric S Fraga @ 2013-03-13 11:40 UTC (permalink / raw)
To: emacs-orgmode
Hello,
I had to update my web site [1] today, a site which is written in
org. This was the first attempt at using the new exporter for
publishing for a site written with the old exporter in mind. I thought
I would summarise the changes I had to make to have them all in one
place:
1. change #+SETUPFILE: to #+INCLUDE: and add quotes to the file name.
2. change all configuration lines that I had previously commented out by
adding a # (to get "##+") at the start to just "# +" as comment lines
now must start with "# ". This is not a change due to the new
exporter but one that came in a while ago -- you can tell how often I
update my web site! :(
3. add ":publishing-function" to all of my entries in
org-publish-project-alist. Before, no such entry was required. The
value of this setting is "org-html-publish-to-html" and this entry
appears to be required in each element in the alist even for entries
that are referred to by other entries.
4. change all #+STYLE: directives to #+HTML_HEAD:
After this, everything worked perfectly fine (well, except for some
ditaa related export issues which I will address later). I am
summarising this here as it took me a while to track down the various
bits by trawling the mailing list and Worg.
Again, thanks to all involved and Nicolas in particular for the new exporter.
eric
Footnotes:
[1] http://www.homepages.ucl.ac.uk/~ucecesf/
--
Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-03-13 11:40 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-18 12:51 Publishing to html With the New Exporter Ian Barton
2013-02-18 13:54 ` Nicolas Goaziou
2013-02-18 14:58 ` Ian Barton
2013-02-18 17:25 ` Nicolas Goaziou
2013-02-18 17:45 ` Ian Barton
2013-03-13 11:40 ` Eric S Fraga
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.