From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: ox-html: stand-alone export option? Date: Wed, 18 Feb 2015 11:39:59 +0100 Message-ID: <87egpn33ls.fsf@gmx.us> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37699) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YO23C-0005GM-2G for emacs-orgmode@gnu.org; Wed, 18 Feb 2015 05:40:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YO238-0001vG-FO for emacs-orgmode@gnu.org; Wed, 18 Feb 2015 05:40:13 -0500 Received: from plane.gmane.org ([80.91.229.3]:39558) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YO238-0001up-9J for emacs-orgmode@gnu.org; Wed, 18 Feb 2015 05:40:10 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YO235-0004ZM-Vv for emacs-orgmode@gnu.org; Wed, 18 Feb 2015 11:40:08 +0100 Received: from tsn109-201-152-242.dyn.nltelcom.net ([109.201.152.242]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Feb 2015 11:40:07 +0100 Received: from rasmus by tsn109-201-152-242.dyn.nltelcom.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Feb 2015 11:40:07 +0100 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: emacs-orgmode@gnu.org Hi Melanie, Melanie Bacou writes: > I'm using ox-html to work on shared documents with my > collaborators. We're working off a Dropbox account and converting our > org files to HTML periodically. Cool. > Problem with all cloud storages is they don't work with relative links > inside HTML (links to external images, CSS, and JS resources). I use git and ssh to a wm which I guess is different from "cloud storages" so maybe I don't understand. If you open the browser of my.html and you have an absolute path to https://orgmode.org/logo.png the browser would display it no? Likewise for img/logo.png. Probably I've misunderstood. . . > We would really benefit from having a "stand-alone" HTML exporter > feature that automatically embeds all external references into one > single HTML file, so they can be shared with Dropbox, Google Drive, > OneDrive and the likes. Would you base64 encode images and inline code or do you have something else in mind with single HTML file? It's not built into Org ATM. In the short run maybe there's a tool that can do. For instance, in Firefox it will save auxiliary material when you save a page. I don't know if also save whatever scripts you rely on from whatever CDN far away... > Has this been discussed previously? Would there be any other work around? I think there was one guy who had patch that would automatically download external images. Pretty neat. I don't know if it was applied in the end. —Rasmus -- ツ