emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Publishing orgmode files
@ 2015-02-20  6:09 Xavier Maillard
  2015-02-22 22:24 ` Xavier Maillard
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Xavier Maillard @ 2015-02-20  6:09 UTC (permalink / raw)
  To: emacs-orgmode

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

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/
├── Makefile
├── css
│   └── style.css
├── gnupg.org
├── header
│   └── header.org
├── index.org
├── org-templates
│   └── level-0.org
└── 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: <link rel="stylesheet" type="text/css" href="css/style.css" />

# 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.

Can someone help ?


Thank you.
--
Xavier

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1494 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Publishing orgmode files
  2015-02-20  6:09 Publishing orgmode files Xavier Maillard
@ 2015-02-22 22:24 ` Xavier Maillard
  2015-02-23  8:13 ` Samuel Loury
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Xavier Maillard @ 2015-02-22 22:24 UTC (permalink / raw)
  To: emacs-orgmode

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

Hi,

Xavier Maillard <xavier@maillard.im> writes:

> 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 ?

I am still stuck :(
I read a lot of thing but I am lost with that specific task.

Any help really appreciated here :)

-- Xavier,

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1494 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Publishing orgmode files
  2015-02-20  6:09 Publishing orgmode files Xavier Maillard
  2015-02-22 22:24 ` Xavier Maillard
@ 2015-02-23  8:13 ` Samuel Loury
  2015-02-23  8:43 ` Nicolas Goaziou
  2015-08-05  0:00 ` Bastien Guerry
  3 siblings, 0 replies; 5+ messages in thread
From: Samuel Loury @ 2015-02-23  8:13 UTC (permalink / raw)
  To: Xavier Maillard, emacs-orgmode

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

Hi,
Xavier Maillard <xavier@maillard.im> 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/
> ├── Makefile
> ├── css
> │   └── style.css
> ├── gnupg.org
> ├── header
> │   └── header.org
> ├── index.org
> ├── org-templates
> │   └── level-0.org
> └── 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: <link rel="stylesheet" type="text/css" href="css/style.css" />
>
> # 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:
--8<---------------cut here---------------start------------->8---
(let (
	  (org-export-html-style "<link rel=\"stylesheet\" type=\"text/css\" href=\"css/style.css\" />")
	  (org-html-head-include-default-style nil)
	  (org-html-head-include-scripts nil)
	  )
  (org-publish-project ...)
  )
--8<---------------cut here---------------end--------------->8---

Would it do the trick?

-- 
Konubinix
GPG Key    : 7439106A
Fingerprint: 5993 BE7A DA65 E2D9 06CE  5C36 75D2 3CED 7439 106A

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Publishing orgmode files
  2015-02-20  6:09 Publishing orgmode files Xavier Maillard
  2015-02-22 22:24 ` Xavier Maillard
  2015-02-23  8:13 ` Samuel Loury
@ 2015-02-23  8:43 ` Nicolas Goaziou
  2015-08-05  0:00 ` Bastien Guerry
  3 siblings, 0 replies; 5+ messages in thread
From: Nicolas Goaziou @ 2015-02-23  8:43 UTC (permalink / raw)
  To: Xavier Maillard; +Cc: emacs-orgmode

Hello,

Xavier Maillard <xavier@maillard.im> writes:

> 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/
> ├── Makefile
> ├── css
> │   └── style.css
> ├── gnupg.org
> ├── header
> │   └── header.org
> ├── index.org
> ├── org-templates
> │   └── level-0.org
> └── 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.

Did you read

 (info "(org) Publishing options")

and

 (info "(org) Complex example")

?

It might help you getting started.

For most back-end specific options, however, you will need development
version (Org 8.3).


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Publishing orgmode files
  2015-02-20  6:09 Publishing orgmode files Xavier Maillard
                   ` (2 preceding siblings ...)
  2015-02-23  8:43 ` Nicolas Goaziou
@ 2015-08-05  0:00 ` Bastien Guerry
  3 siblings, 0 replies; 5+ messages in thread
From: Bastien Guerry @ 2015-08-05  0:00 UTC (permalink / raw)
  To: Xavier Maillard; +Cc: emacs-orgmode

Hi Xavier,

Xavier Maillard <xavier@maillard.im> writes:

> 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 ?

Did you end up with good guidelines?  Either from someone else or from
your own experience?

Thanks in advance for sharing!

-- 
 Bastien

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-08-05  0:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-20  6:09 Publishing orgmode files Xavier Maillard
2015-02-22 22:24 ` Xavier Maillard
2015-02-23  8:13 ` Samuel Loury
2015-02-23  8:43 ` Nicolas Goaziou
2015-08-05  0:00 ` Bastien Guerry

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).