emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* publishing does not work anymore
@ 2021-05-06 11:53 Giuseppe Lipari
  2021-05-06 20:58 ` Nick Dokos
  0 siblings, 1 reply; 4+ messages in thread
From: Giuseppe Lipari @ 2021-05-06 11:53 UTC (permalink / raw)
  To: emacs-orgmode

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

Hello,

I have a problem with my publishing workflow. Here is the setting of my
variable org-publish-projet-alist in my init.org

(setq org-publish-project-alist
   '(("fil-web"
      :base-directory "./"
      :base-extension "org"
      :publishing-directory "./"
      :preparation-function update-all-dblocks-before-exporting
      :publishing-function org-html-publish-to-html
      :html-extension "php"
      :body-only t
      :html-postamble: t
      :html-postamble-format : "<?php include 'signature.php'; ?>"
      )))

This worked nicely until a few days ago: starting from page.org, it would
produce page.php as expected.

Today I upgraded my system from ubuntu 18 to ubuntu 20.
I have GNU Emacs 26.3, and org-version is 9.3.1

Now, when I want to publish, it gives me the following error :


Publishing file
/home/lipari/Documents/corsi/IoT/portail/portail-master-info/portail/ue-M1S2-COA/
semainier.org using ‘org-html-publish-to-html’
org-combine-plists: Wrong type argument: plistp, (:base-directory "./"
:base-extension "org" :publishing-directory "./" :preparation-function
update-all-dblocks-before-exporting :publishing-function
org-html-publish-to-html ...)



Unfortunately, this completely breaks my long-time functioning workflow for
publishing the details of my course on the University portal.

Can someone please help me sort out the problem ?

Best,

Giuseppe Lipari


Giuseppe Lipari
CRIStAL,
Université de Lille

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

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

* Re: publishing does not work anymore
  2021-05-06 11:53 publishing does not work anymore Giuseppe Lipari
@ 2021-05-06 20:58 ` Nick Dokos
  2021-05-07  2:08   ` Timothy
  0 siblings, 1 reply; 4+ messages in thread
From: Nick Dokos @ 2021-05-06 20:58 UTC (permalink / raw)
  To: emacs-orgmode

Giuseppe Lipari <giulipari@gmail.com> writes:


> (setq org-publish-project-alist
>    '(("fil-web"
>       :base-directory "./"
>       :base-extension "org"
>       :publishing-directory "./"
>       :preparation-function update-all-dblocks-before-exporting
>       :publishing-function org-html-publish-to-html
>       :html-extension "php"
>       :body-only t
>       :html-postamble: t
>       :html-postamble-format : "<?php include 'signature.php'; ?>"

This last one seems wrong: the extra space before the colon should probably not be there.
And I'm not sure whethe the colon after the last two properties should be there at all.

-- 
Nick

"There are only two hard problems in computer science: cache
invalidation, naming things, and off-by-one errors." -Martin Fowler



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

* Re: publishing does not work anymore
  2021-05-06 20:58 ` Nick Dokos
@ 2021-05-07  2:08   ` Timothy
  2021-05-07 13:25     ` Giuseppe Lipari
  0 siblings, 1 reply; 4+ messages in thread
From: Timothy @ 2021-05-07  2:08 UTC (permalink / raw)
  To: Nick Dokos; +Cc: emacs-orgmode


Nick Dokos <ndokos@gmail.com> writes:
>>       :body-only t
>>       :html-postamble: t
>>       :html-postamble-format : "<?php include 'signature.php'; ?>"
>
> This last one seems wrong: the extra space before the colon should probably not be there.
> And I'm not sure whethe the colon after the last two properties should be there at all.

It shouldn't be, it should be:
#+begin_example
       :body-only t
       :html-postamble t
       :html-postamble-format "<?php include 'signature.php'; ?>"
#+end_example

Though the last line may need to be
#+begin_example
       :html-postamble-format '((en "<?php include 'signature.php'; ?>"))
#+end_example
or similar.

--
Timothy


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

* Re: publishing does not work anymore
  2021-05-07  2:08   ` Timothy
@ 2021-05-07 13:25     ` Giuseppe Lipari
  0 siblings, 0 replies; 4+ messages in thread
From: Giuseppe Lipari @ 2021-05-07 13:25 UTC (permalink / raw)
  To: Timothy; +Cc: Nick Dokos, emacs-orgmode

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

Thanks to both ! (I am puzzled at why it worked before, since I did not
change my configuration file between updates ... maybe a more robust
parser?)

The error condition is solved now, the php file is generated. However, the
final string <?php ...?> is not in the file. I tried both:

#+begin_example
       :body-only t
       :html-postamble t
       :html-postamble-format "<?php include 'signature.php'; ?>"
#+end_example

and

#+begin_example
       :body-only t
       :html-postamble t
       :html-postamble-format '((en "<?php include 'signature.php'; ?>"))
#+end_example

but no luck.
What I want to do is to just append the string '<?php ...?>' at the end of
the file, maybe there is a simpler and more idiomatic way of doing it?

Thanks again for your help,

Giuseppe Lipari
CRIStAL,
Université de Lille


Le ven. 7 mai 2021 à 04:08, Timothy <tecosaur@gmail.com> a écrit :

>
> Nick Dokos <ndokos@gmail.com> writes:
> >>       :body-only t
> >>       :html-postamble: t
> >>       :html-postamble-format : "<?php include 'signature.php'; ?>"
> >
> > This last one seems wrong: the extra space before the colon should
> probably not be there.
> > And I'm not sure whethe the colon after the last two properties should
> be there at all.
>
> It shouldn't be, it should be:
> #+begin_example
>        :body-only t
>        :html-postamble t
>        :html-postamble-format "<?php include 'signature.php'; ?>"
> #+end_example
>
> Though the last line may need to be
> #+begin_example
>        :html-postamble-format '((en "<?php include 'signature.php'; ?>"))
> #+end_example
> or similar.
>
> --
> Timothy
>
>

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

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

end of thread, other threads:[~2021-05-07 13:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-06 11:53 publishing does not work anymore Giuseppe Lipari
2021-05-06 20:58 ` Nick Dokos
2021-05-07  2:08   ` Timothy
2021-05-07 13:25     ` Giuseppe Lipari

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