* Using org-publish for two seperate sites
@ 2015-08-06 17:13 Sharon Kimble
2015-08-06 20:30 ` Nick Dokos
0 siblings, 1 reply; 2+ messages in thread
From: Sharon Kimble @ 2015-08-06 17:13 UTC (permalink / raw)
To: org-mode-email
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Using org-publish for two seperate sites
2015-08-06 17:13 Using org-publish for two seperate sites Sharon Kimble
@ 2015-08-06 20:30 ` Nick Dokos
0 siblings, 0 replies; 2+ messages in thread
From: Nick Dokos @ 2015-08-06 20:30 UTC (permalink / raw)
To: emacs-orgmode
Sharon Kimble <boudiccas@skimble.plus.com> writes:
> ...
> I am calling org-publish by "C-c C-e P p" which then shows this in
> "*Messages*"
>
> Loading /home/boudiccas/.org-timestamps/taste.cache...done
> org-publish-file: No publishing function chosen
>
[entirely untested]
Define a publishing function. The "complex" example in the manual
shows
:publishing-function org-html-publish-to-html
so try adding that.
Apparently, the "simple" example assumes that there is a default
publishing function, but that does not seem to be the case now.
Not sure if it is better to fix the code so that there *is* a
default publishing function or to fix the doc to add one.
--
Nick
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-08-06 20:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-06 17:13 Using org-publish for two seperate sites Sharon Kimble
2015-08-06 20:30 ` Nick Dokos
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).