From mboxrd@z Thu Jan 1 00:00:00 1970 From: Iannis Zannos Subject: Re: Problem getting example on Publishing to web from org-info to work Date: Sat, 5 Mar 2011 23:42:45 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016e68ac88a9f9500049dc32447 Return-path: Received: from [140.186.70.92] (port=48201 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvzFP-0002Pq-Ug for emacs-orgmode@gnu.org; Sat, 05 Mar 2011 16:42:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvzFO-0001kW-Ig for emacs-orgmode@gnu.org; Sat, 05 Mar 2011 16:42:47 -0500 Received: from mail-vx0-f169.google.com ([209.85.220.169]:38692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvzFO-0001kL-AG for emacs-orgmode@gnu.org; Sat, 05 Mar 2011 16:42:46 -0500 Received: by vxc38 with SMTP id 38so3638131vxc.0 for ; Sat, 05 Mar 2011 13:42:45 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --0016e68ac88a9f9500049dc32447 Content-Type: text/plain; charset=ISO-8859-1 Hello and sorry, please ignore my question. The mistake ws the missing slash (/) at the end of the folder specifications for the project's file. The publish-project to html works now all right. Iannis Zannos On Sat, Mar 5, 2011 at 9:59 PM, Iannis Zannos wrote: > > 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.orgusing `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 " 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 > ))) > > --0016e68ac88a9f9500049dc32447 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

Hello and sorry, please ignore my question.=A0
The mista= ke ws the missing slash (/) at the end of the folder specifications for the= project's file.=A0

The publish-project to htm= l works now all right.=A0

Iannis Zannos

On Sat,= Mar 5, 2011 at 9:59 PM, Iannis Zannos <zannos@gmail.com> wrote:

Hello,=A0

Both examples from the org-info= tutorial on publishing projects to web=A0
(13.3.1 Example: simpl= e publishing configuration
13.3.2 Example: complex publishin= g configuration)

fail with the following trace from the message window:= =A0

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

I also tried an example configuration from=A0

with the same results.=A0

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

Any hints as to how to get started with publishing proj= ects from org to html?=A0

Thank!=A0

=
Iannis Zannos


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

(require 'org= -publish)

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



(setq org-publish-project-alist
=A0=A0 =A0 =A0 =A0 =A0 = '(("test2"
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0:base-dire= ctory "/Users/iani/Documents/projects/110305website"
= =A0=A0 =A0 =A0 =A0 =A0 =A0 =A0:publishing-directory "/Users/iani/Sites= /"
;; =A0=A0 =A0 =A0:base-dir= ectory "~/org/"
<= /span>=A0=A0 =A0 =A0:base-extension "org"
;; =A0=A0 =A0 =A0:publishi= ng-directory "~/public_html/"
=A0=A0 =A0 =A0:recursive t
=A0=A0 =A0 =A0:publishing= -function org-publish-org-to-html
=A0=A0 =A0 =A0:headline-levels 4 =A0 =A0 =A0 =A0 =A0 =A0 ; Ju= st the default for this project.
=A0=A0 =A0 =A0:auto-pream= ble t
=A0=A0 =A0 =A0= )))


--0016e68ac88a9f9500049dc32447--