emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Iannis Zannos <zannos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Problem getting example on Publishing to web from org-info to work
Date: Sat, 5 Mar 2011 21:59:01 +0200	[thread overview]
Message-ID: <AANLkTik3iz9pTD4_wiW5ZzfqJyw-9u9KfR2q-+nJ64WS@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1820 bytes --]

Hello,

Both examples from the org-info tutorial on publishing projects to web
(13.3.1 Example: simple publishing configuration
13.3.2 Example: complex publishing configuration)

fail with the following trace from the message window:

Publishing file /Users/iani/Documents/projects/110305website/index.org using
`org-publish-org-to-html'
Exporting... [2 times]
Wrong type argument: stringp, nil

I also tried an example configuration from
http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html

with the same results.

index.org is the sole file to publish, and is located in the folder
specified in the publish alist (as per code below).

Any hints as to how to get started with publishing projects from org to
html?

Thank!

Iannis Zannos


=====================
Try 1: (from org-info)

(require 'org-publish)

 (setq org-publish-project-alist
           '(("test"
              :base-directory "/Users/iani/Documents/projects/110305website"
              :publishing-directory "/Users/iani/Sites"
      :base-extension "org"
              :section-numbers true
              :table-of-contents true
              :style "<link rel=\"stylesheet\"
                     href=\"../other/mystyle.css\"
                     type=\"text/css\"/>")))



Try 2: (from
http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html)
(setq org-publish-project-alist
           '(("test2"
              :base-directory "/Users/iani/Documents/projects/110305website"
              :publishing-directory "/Users/iani/Sites/"
;;       :base-directory "~/org/"
      :base-extension "org"
;;       :publishing-directory "~/public_html/"
      :recursive t
      :publishing-function org-publish-org-to-html
      :headline-levels 4             ; Just the default for this project.
      :auto-preamble t
      )))

[-- Attachment #2: Type: text/html, Size: 3569 bytes --]

             reply	other threads:[~2011-03-05 19:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-05 19:59 Iannis Zannos [this message]
2011-03-05 21:42 ` Problem getting example on Publishing to web from org-info to work Iannis Zannos
2011-03-05 21:51   ` Bastien

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=AANLkTik3iz9pTD4_wiW5ZzfqJyw-9u9KfR2q-+nJ64WS@mail.gmail.com \
    --to=zannos@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).