From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: change JS & CSS paths when publishing? Date: Thu, 13 Mar 2014 11:10:39 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WO7HN-0001XT-AA for emacs-orgmode@gnu.org; Thu, 13 Mar 2014 11:10:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WO7HM-0003x5-HM for emacs-orgmode@gnu.org; Thu, 13 Mar 2014 11:10:41 -0400 Received: from mail-qg0-x229.google.com ([2607:f8b0:400d:c04::229]:40428) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WO7HM-0003wx-Cs for emacs-orgmode@gnu.org; Thu, 13 Mar 2014 11:10:40 -0400 Received: by mail-qg0-f41.google.com with SMTP id i50so3369202qgf.0 for ; Thu, 13 Mar 2014 08:10:39 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org 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