emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Doc bug: Publishing "Simple Example" is missing publishing function
Date: Wed, 20 Sep 2017 08:20:48 -0400	[thread overview]
Message-ID: <8760cdwogv.fsf@pierrot.dokosmarshall.org> (raw)

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

I tried to publish the project described in

  (info "(org) Simple example")

and I got the complaint

,----
| ~$ emacs -batch -l foo.el --eval '(org-publish "org")'
| No publishing function chosen
`----

I attach a patch to fix the doc.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Simple publishing example - patch --]
[-- Type: text/x-patch, Size: 828 bytes --]

From 653cf7ba3041c5992091317f0c18c47326f58d70 Mon Sep 17 00:00:00 2001
From: Nick Dokos <ndokos@gmail.com>
Date: Wed, 20 Sep 2017 08:03:49 -0400
Subject: [PATCH] Add publishing function to "Simple example"

The simple example project definition is missing a publishing
function. Added org-html-publish-to-html as the publishing function.
---
 doc/org.texi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/doc/org.texi b/doc/org.texi
index b368c0e..53143df 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -15024,6 +15024,7 @@ directory on the local machine.
       '(("org"
          :base-directory "~/org/"
          :publishing-directory "~/public_html"
+         :publishing-function org-html-publish-to-html
          :section-numbers nil
          :with-toc nil
          :html-head "<link rel=\"stylesheet\"
-- 
2.7.5


[-- Attachment #3: Type: text/plain, Size: 12 bytes --]


-- 
Nick



             reply	other threads:[~2017-09-20 13:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-20 12:20 Nick Dokos [this message]
2017-09-21 19:17 ` Doc bug: Publishing "Simple Example" is missing publishing function Nicolas Goaziou

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=8760cdwogv.fsf@pierrot.dokosmarshall.org \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).