From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: why prepend "file://" to abs paths in html output? Date: Sun, 09 Jul 2017 12:45:43 +0200 Message-ID: <877ezh51ns.fsf@nicolasgoaziou.fr> References: <87lgnz43qk.fsf@nicolasgoaziou.fr> <87h8yn3tsa.fsf@nicolasgoaziou.fr> <87bmou4u8a.fsf@nicolasgoaziou.fr> <874lumfqk7.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dU9ip-0004Tl-Tf for emacs-orgmode@gnu.org; Sun, 09 Jul 2017 06:45:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dU9im-0007fP-SY for emacs-orgmode@gnu.org; Sun, 09 Jul 2017 06:45:51 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:55632) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dU9im-0007eC-Kk for emacs-orgmode@gnu.org; Sun, 09 Jul 2017 06:45:48 -0400 In-Reply-To: <874lumfqk7.fsf@gmail.com> (Tim Cross's message of "Sun, 09 Jul 2017 09:37:44 +1000") 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" To: Tim Cross Cc: Carsten Dominik , Org Mode , Kaushal Modi Hello, Tim Cross writes: > Perhaps we need a way to easily set a context for web exports. If the > context is set, then use it, otherwise, use file:/// (actually, I > thought this was already there, but it has been a while since I did html > exports where links were necessary). The following patch implements `org-html-root', which allows to export file links as root-relative URL. I'm not sure the docstring is clear enough, tho. Also, HTML publishing process always bind the above to publishing directory, without user intervention. So, basically, upon exporting the following document to HTML: #+html_link_root: /tmp/ [[/tmp/unicorn.jpg]] the link becomes unicorn.jpg WDYT? Regards, -- Nicolas Goaziou