From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Loury Subject: Re: Publishing orgmode files Date: Mon, 23 Feb 2015 09:13:40 +0100 Message-ID: <87zj85oxjf.fsf@konixwork.incubateur.ens-lyon.fr> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPo9J-0007lI-1s for emacs-orgmode@gnu.org; Mon, 23 Feb 2015 03:13:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YPo9E-00009N-Eh for emacs-orgmode@gnu.org; Mon, 23 Feb 2015 03:13:52 -0500 Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]:34550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPo9E-00008t-6w for emacs-orgmode@gnu.org; Mon, 23 Feb 2015 03:13:48 -0500 Received: by mail-wi0-f182.google.com with SMTP id l15so14642789wiw.3 for ; Mon, 23 Feb 2015 00:13:46 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Xavier Maillard , emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Xavier Maillard writes: > Hello, > > I am trying to publish my org project but I am lost in the way I can > tweak my projects. > > Is there some good tutorial I can follow step by step in order to > publish several files at once ? > > My site tree is like this: > > web/ > =E2=94=9C=E2=94=80=E2=94=80 Makefile > =E2=94=9C=E2=94=80=E2=94=80 css > =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 style.css > =E2=94=9C=E2=94=80=E2=94=80 gnupg.org > =E2=94=9C=E2=94=80=E2=94=80 header > =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 header.org > =E2=94=9C=E2=94=80=E2=94=80 index.org > =E2=94=9C=E2=94=80=E2=94=80 org-templates > =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 level-0.org > =E2=94=94=E2=94=80=E2=94=80 publish_config.el > > I am using a Makefile to build it from the command line but it is > just a gadget that just make a call to `org-publish-project'. > > Where I am totally lost is with how I can tweak my publish option. > > Turns out I can add many options directly into org-mode files but > that's not practical to clone/duplicate them in several places. This > is where org-templates should enter the dance but either I use them > bad or it just not the way to go. > > I am tryng as a simple example, to replace the default (included) > style with my own (stored in css/style.css). > > My org-templates/level-0.org has this: > > #+STYLE: > > # Local Variables: > # org-html-head-include-default-style: nil > # org-html-head-include-scripts: nil > # End: > > All of this has been stolen here and there but it just does nothing. > Elsewhere I have seen we can embed :style in the > `org-publish-project-alist' (same result). Some people are using > #+HTML_HEAD_EXTRA instead. > > So what is the way to go just for this basic stuff ? > > I have nothing configured with org-mode (8.2.10 version by the way) > and I am using the defaults eveywhere. I don't know of org-template, but I generally set some elisp variables to provide my own customization before calling `org-publish-project'. Wouldn't it be enough for your use case? For instance, I guess your call to `org-publish-project' could look like: =2D-8<---------------cut here---------------start------------->8--- (let ( (org-export-html-style "") (org-html-head-include-default-style nil) (org-html-head-include-scripts nil) ) (org-publish-project ...) ) =2D-8<---------------cut here---------------end--------------->8--- Would it do the trick? =2D-=20 Konubinix GPG Key : 7439106A Fingerprint: 5993 BE7A DA65 E2D9 06CE 5C36 75D2 3CED 7439 106A --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJU6uE0AAoJEHXSPO10ORBqKbsH/3AEppUqraond/fpCo/VemBk b75FMQim5/m6+I3UI7sUSYmNDU3Ze2llyAraePVHjz/EVsVrg1iJPj1+6j4Wk1l/ 19S2xzn/+hLnLloCKW0BWHbBFW6+JDpXXlg3xaiWHjE8ccvUsnWsDvvn/EmFG7F0 elx4a7F+NbU5jerZL8RX/FVHaBYnCCA2rSnobmIeITNmtl1OYxTpaV+Ayp8ef+im zyVyZHpdaV/2wm/yhQh6/9kgWSlYqJnjfXDtWzpz2gu+T3hNlO1AzHCcm6Myw2+R JS27M9vrag7QCplRHhrg8yYIIa6ckGcrroauNWN3ahryqfBcRERmV9f3OUf6QEg= =Pc8d -----END PGP SIGNATURE----- --=-=-=--