all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* change JS & CSS paths when publishing?
@ 2014-03-13 15:10 Matt Price
  2014-03-13 15:57 ` Bastien
  0 siblings, 1 reply; 3+ messages in thread
From: Matt Price @ 2014-03-13 15:10 UTC (permalink / raw)
  To: Org Mode

Hi,

I've been using ox-deck to export my lectures as slides.  Internet
connectivity in one of my lecture halls is a little unreliable, so I
keep a local copy of deck.js (which contains js and css files) on my
laptop.  Without those files, the slideshow just exports as plain
HTML.

I would like to provide those lectures on the web for my students.
(Ideally, in fact, I would like to provide a couple of versions of
each lecture:  one deck slideshow, one plain html, and maybe one pdf
or odt version.)  Howver, the deck publish ocmmand writes paths to the
local copies of deck's css and js files. I would like to rewrite these
paths in the published files, to use the version of deck on my server
instead.

So, my question: how can I rewrite those paths when I publish?  I
guess there are two possible ways:
- defadvice on org-deck-publish-to-html?
- use a :completion-function on the project definition?

But honestly I have no experience with writing defadvices, and I am
not sure how the completion-function is supposed to work (like, what
arguments it takes).

If anyone has done something similar, I would be be very grateful to
hear about it!  Thanks,

Matt

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

end of thread, other threads:[~2014-03-14  3:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-13 15:10 change JS & CSS paths when publishing? Matt Price
2014-03-13 15:57 ` Bastien
     [not found]   ` <CAN_Dec_D=H6pymh+CLoKdv_Pf+DB5d48dW6KZi-xK2e8B-5YmA@mail.gmail.com>
2014-03-14  3:01     ` Matt Price

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.