From: Sharon Kimble <boudiccas@skimble.plus.com>
To: org-mode-email <emacs-orgmode@gnu.org>
Subject: Using org-publish for two seperate sites
Date: Thu, 06 Aug 2015 18:13:58 +0100 [thread overview]
Message-ID: <874mkccpbd.fsf@skimble.plus.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2691 bytes --]
I'm trying to set up org-publishing for two sites, with the intention of
moving away from wordpress.
I have set it up using "taste" and "tgmeds" to delineate each site.
--8<---------------cut here---------------start------------->8---
(setq org-publish-project-alist
'(("taste"
:base-directory "~/.emacs.d/orgblog/taste/"
:publishing-directory "~/.emacs.d/blog/taste/"
:makeindex non-nil ; index generation
:section-numbers nil
:with-toc nil
:html-head "<link rel=\"stylesheet\"
href=\"../other/mystyle.css\"
type=\"text/css\"/>"
(define-key org-mode-map (kbd "C-c C-1a")
(lambda ()
(interactive)
(org-publish "foo")))
))
'(("tgmeds"
:base-directory "~/.emacs.d/orgblog/tgmeds/"
:publishing-directory "~/.emacs.d/blog/tgmeds/"
:makeindex non-nil ; index generation
:section-numbers nil
:with-toc nil
:html-head "<link rel=\"stylesheet\"
href=\"../other/mystyle.css\"
type=\"text/css\"/>"
;(define-key org-mode-map (kbd "C-c C-1t")
; (lambda ()
; (interactive)
; (org-publish "foo")))
)))
--8<---------------cut here---------------end--------------->8---
I'm able to write the postings and get them converted to html, but when
I try to use the export and publish functions it is failing. It then
shows this in "*Backtrace*"
--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (error "No publishing function chosen")
signal(error ("No publishing function chosen"))
error("No publishing function chosen")
org-publish-file("/home/boudiccas/.emacs.d/orgblog/taste/anewmv.org")
org-publish-current-file(nil nil)
org-export-dispatch(nil)
#<subr call-interactively>(org-export-dispatch nil nil)
ad-Advice-call-interactively(#<subr call-interactively> org-export-dispatch nil nil)
apply(ad-Advice-call-interactively #<subr call-interactively> (org-export-dispatch nil nil))
call-interactively(org-export-dispatch nil nil)
command-execute(org-export-dispatch)
--8<---------------cut here---------------end--------------->8---
I am calling org-publish by "C-c C-e P p" which then shows this in
"*Messages*"
--8<---------------cut here---------------start------------->8---
Loading /home/boudiccas/.org-timestamps/taste.cache...done
org-publish-file: No publishing function chosen
--8<---------------cut here---------------end--------------->8---
How can I then publish my postings, and also generate the necessary
index.html file please?
Thanks
Sharon.
--
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.0, fluxbox 1.3.7, emacs 24.5.50.3
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
next reply other threads:[~2015-08-06 17:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-06 17:13 Sharon Kimble [this message]
2015-08-06 20:30 ` Using org-publish for two seperate sites Nick Dokos
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=874mkccpbd.fsf@skimble.plus.com \
--to=boudiccas@skimble.plus.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).