emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Manuel Giraud <manuel.giraud@univ-nantes.fr>
To: "Sébastien Vauban" <wxhgmqzgwmuf@spammotel.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Error when publishing to HTML
Date: Fri, 18 Feb 2011 11:02:44 +0100	[thread overview]
Message-ID: <874o813bjv.fsf@univ-nantes.fr> (raw)
In-Reply-To: <804o825rl2.fsf@missioncriticalit.com> ("Sébastien Vauban"'s message of "Thu, 17 Feb 2011 21:33:29 +0100")

Sébastien Vauban <wxhgmqzgwmuf@spammotel.com> writes:

> #+begin_src emacs-lisp
> (add-to-list 'org-publish-project-alist
>              '(("orgfiles"
>                 :base-directory "~/src/web-in-org/org/"
>                 :base-extension "org"
>                 :publishing-directory "~/src/web-in-org/public_html/"
>                 :publishing-function org-publish-org-to-html
>                 :section-numbers nil
>                 :table-of-contents nil
>                 :auto-sitemap t
>                 :sitemap-title "Sitemap"
>                 :style "<link rel=\"stylesheet\" href=\"css/worg.css\" type=\"text/css\"/>")
>                ("css"
>                 :base-directory "~/src/web-in-org/org/css/"
>                 :base-extension "css"
>                 :publishing-directory "~/src/web-in-org/public_html/css/"
>                 :publishing-function org-publish-attachment)
>                ("mysite"
>                 :components ("orgfiles" "css"))))
> #+end_src

Ok, I think I found your problem here: your add-to-list create a too
much nested list here. You could either do:

#+begin_src emacs-lisp
(setq org-publish-project-alist nil)
(add-to-list 'org-publish-project-alist
             '("orgfiles"
                :base-directory "~/src/web-in-org/org/"
                :base-extension "org"
                :publishing-directory "~/src/web-in-org/public_html/"
                :publishing-function org-publish-org-to-html
                :section-numbers nil
                :table-of-contents nil
                :auto-sitemap t
                :sitemap-title "Sitemap"
                :style "<link rel=\"stylesheet\" href=\"css/worg.css\" type=\"text/css\"/>"))

(add-to-list 'org-publish-project-alist
             '("css"
                :base-directory "~/src/web-in-org/org/css/"
                :base-extension "css"
                :publishing-directory "~/src/web-in-org/public_html/css/"
                :publishing-function org-publish-attachment))

(add-to-list  'org-publish-project-alist
              '("mysite"
                :components ("orgfiles" "css"))
#+end_src

or (as shown in documentation examples):

#+begin_src emacs-lisp
(setq org-publish-project-alist
             '(("orgfiles"
                :base-directory "~/src/web-in-org/org/"
                :base-extension "org"
                :publishing-directory "~/src/web-in-org/public_html/"
                :publishing-function org-publish-org-to-html
                :section-numbers nil
                :table-of-contents nil
                :auto-sitemap t
                :sitemap-title "Sitemap"
                :style "<link rel=\"stylesheet\" href=\"css/worg.css\" type=\"text/css\"/>")
               ("css"
                :base-directory "~/src/web-in-org/org/css/"
                :base-extension "css"
                :publishing-directory "~/src/web-in-org/public_html/css/"
                :publishing-function org-publish-attachment)
               ("mysite"
                :components ("orgfiles" "css"))))
#+end_src

Best regards,
-- 
Manuel Giraud

  reply	other threads:[~2011-02-18 10:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-17 20:33 Error when publishing to HTML Sébastien Vauban
2011-02-18 10:02 ` Manuel Giraud [this message]
2011-02-18 10:32   ` Sébastien Vauban

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=874o813bjv.fsf@univ-nantes.fr \
    --to=manuel.giraud@univ-nantes.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=wxhgmqzgwmuf@spammotel.com \
    /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).