From: Matt Price <moptop99@gmail.com>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: change JS & CSS paths when publishing?
Date: Thu, 13 Mar 2014 11:10:39 -0400 [thread overview]
Message-ID: <CAN_Dec9C391xAdirnb51o30zfxcWhKcQOTT1qbiZvSbcQzgOgw@mail.gmail.com> (raw)
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
next reply other threads:[~2014-03-13 15:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-13 15:10 Matt Price [this message]
2014-03-13 15:57 ` change JS & CSS paths when publishing? Bastien
[not found] ` <CAN_Dec_D=H6pymh+CLoKdv_Pf+DB5d48dW6KZi-xK2e8B-5YmA@mail.gmail.com>
2014-03-14 3:01 ` Matt Price
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAN_Dec9C391xAdirnb51o30zfxcWhKcQOTT1qbiZvSbcQzgOgw@mail.gmail.com \
--to=moptop99@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 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.