[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] why prepend "file://" to abs paths in html output?
From: |
Tim Cross |
Subject: |
Re: [O] why prepend "file://" to abs paths in html output? |
Date: |
Tue, 11 Jul 2017 08:12:20 +1000 |
User-agent: |
mu4e 0.9.18; emacs 25.2.1 |
Having seen the other posts on this, I think I'll need to spend more
time thinking about this and the various use cases. There is something
I'm having trouble putting my finger on which doesn't feel quite right,
but I feel I need to look more deeply into the whole idea of how to
export links generally. Originally, I was thinking just about HTML
export and just file:// vs site context specific links.
Based on what you have provided, this certainly does seem to address the
specific use case I was thinking of, but others have pointed out
additional considerations, so I'm now not sure if the suggested approach
won't improve one case while making others more difficult/restricted.
Tim
Nicolas Goaziou writes:
> Hello,
>
> Tim Cross <address@hidden> 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
>
> <img src="/unicorn.jpg" alt="unicorn.jpg" />
>
>
> WDYT?
>
> Regards,
--
Tim Cross
- Re: [O] why prepend "file://" to abs paths in html output?, (continued)
- Re: [O] why prepend "file://" to abs paths in html output?, Nicolas Goaziou, 2017/07/10
- Re: [O] why prepend "file://" to abs paths in html output?, Brett Viren, 2017/07/10
- Re: [O] why prepend "file://" to abs paths in html output?, Kaushal Modi, 2017/07/10
- Re: [O] why prepend "file://" to abs paths in html output?, Kaushal Modi, 2017/07/10
- Re: [O] why prepend "file://" to abs paths in html output?, Nicolas Goaziou, 2017/07/13
- Re: [O] why prepend "file://" to abs paths in html output?, Kaushal Modi, 2017/07/13
- Re: [O] why prepend "file://" to abs paths in html output?, Nicolas Goaziou, 2017/07/13
- Re: [O] why prepend "file://" to abs paths in html output?, Kaushal Modi, 2017/07/13
- Re: [O] why prepend "file://" to abs paths in html output?, Nicolas Goaziou, 2017/07/13
- Re: [O] why prepend "file://" to abs paths in html output?, Nicolas Goaziou, 2017/07/13
- Re: [O] why prepend "file://" to abs paths in html output?,
Tim Cross <=