emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Gez <suleika@gmail.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Publish project alist in org-mode 8 - confusing documentation
Date: Fri, 7 Mar 2014 18:21:15 +0000	[thread overview]
Message-ID: <CAPQe_UregskFdFagWFkEt0xi+xWc8Rok92DyeH_Nmg069GU6Yw@mail.gmail.com> (raw)
In-Reply-To: <87k3c7vyfp.fsf@berkeley.edu>

>Richard Lawrence <richard.lawrence@berkeley.edu> writes:
>
> Gez <suleika@gmail.com> writes:
>
> > but I don't know where to begin adapting it to the new export framework.
> >
> > For example, I'd be very grateful if someone could "translate" the
> > following (or something more simple) into org-mode 8 version, so I can
> > start evaluating and playing with it.
> >
> > (require 'org-publish)
> > (setq org-publish-project-alist
> >       '(
> > ("org-notes"
> >  :base-directory "~/org/"
> >  :base-extension "org"
> >  :publishing-directory "~/public_html/"
> >  :recursive t
> >  :publishing-function org-publish-org-to-html
>
> It's been a while since I converted my publishing setup to the new
> exporter, but I *think* the only change you need to make here is to the
> :publishing-function option.
>
> The function you want here is now called org-html-publish-to-html.
> There are other similar functions in the other export backends -- e.g.,
> the function to publish to PDF is org-latex-publish-to-pdf.
>
> Thus, if you need to find an appropriate publishing function, start by
> looking for a function named like: org-BACKEND-publish-to-FORMAT.  I
> don't remember how I figured this out, but hopefully it is documented in
> the manual...

Thanks - in fact, the first issue was the first line:

(require 'org-publish)

which gave the error message

eval: Cannot open load file: org-publish

But I guessed I needed to replace it with:

(require 'ox-publish)

And that fixed it.  As for the function you mentioned, I checked
http://orgmode.org/worg/org-8.0.html#sec-5-2 and replaced
org-publish-org-to-html with org-html-publish-to-html.  And I got
something to publish.  Now that it's basically working I can play
around with the options etc. Many thanks.

By the way, sorry if this isn't threaded correctly; I didn't receive
these emails (mine and the reply) from the list so I couldn't reply.
I have checked my mailman settings and I'm supposed to receive my own
posts.  :-(

Gez

      reply	other threads:[~2014-03-07 18:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-06 19:00 Publish project alist in org-mode 8 - confusing documentation Gez
2014-03-06 20:56 ` Richard Lawrence
2014-03-07 18:21   ` Gez [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAPQe_UregskFdFagWFkEt0xi+xWc8Rok92DyeH_Nmg069GU6Yw@mail.gmail.com \
    --to=suleika@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).