From: Carsten Dominik <carsten.dominik@gmail.com>
To: "Łukasz Stelmach" <lukasz.stelmach@iem.pw.edu.pl>
Cc: emacs-orgmode@gnu.org
Subject: Re: portable absolute links in HTML export
Date: Thu, 7 Oct 2010 14:38:15 +0200 [thread overview]
Message-ID: <DE89C92A-80D6-4D65-8A4D-07B236E0641A@gmail.com> (raw)
In-Reply-To: <87tykyb3bu.fsf@dasa3.iem.pw.edu.pl>
On Oct 7, 2010, at 2:21 PM, Łukasz Stelmach wrote:
> Hello.
>
> Is there a simple way to create hyperlinks with *absolute* paths that
> would work after both: simple file export (C-c C-e h) and publishing
> on
> a remote server (C-c C-e F). I'd like to create a _menu.org file that
> contains some navigation links and #+INCLUDE: it (BTW. M-Tab can't
> complete #+INC) in every single file I create and publish.
Maybe you can use link abbreviations and define the abbreviation
differently for both cases.
- Carsten
>
> The problem now looks like there should be separete _menu.org files
> for
> each directory if I want to use relative paths in the menu links, that
> work after local (C-c C-e h) and remote (C-c C-e h) export. When I put
> absolute paths that work on
>
> Let's say I've got a structure like this
>
> ~/WWW/index.org
> ~/WWW/_menu.org
> ~/stuff/index.org
> ~/things/index.org
> ~/problems/index.org
>
> after publishing the index.org files are available at:
>
> http://example.com/~stl/
> http://example.com/~stl/stuff/
> http://example.com/~stl/things/
> http://example.com/~stl/problems/
>
> respectively.
>
> The _menu.org that works in the main index.org looks like this:
>
> + [[file:index.org][Home]]
> + [[file:stuff/index.org][Stuff]]
> + [[file:things/index.org][Things]]
> + [[file:problems/index.org][Problems]]
>
> But when I #+INCLUDE it in the stuff/index.org file the links point at
>
> http://example.com/~stl/stuff/index.html
> http://example.com/~stl/stuff/stuff/index.html
> http://example.com/~stl/stuff/things/index.html
> http://example.com/~stl/stuff/problems/index.html
>
> On the other hand if I replace file: links with absolute http: ones I
> won't be able to navigate between the HTML files created locally with
> C-c C-e h.
>
> + [[http://example.com/~stl/index.org][Home]]
> + [[http://example.com/~stl/stuff/index.org][Stuff]]
> + [[http://example.com/~stl/things/index.org][Things]]
> + [[http://example.com/~stl/problems/index.org][Problems]]
>
> Is there any "secret" way to overcome such a problem?
>
> --
> Miłego dnia,
> Łukasz Stelmach
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
- Carsten
next prev parent reply other threads:[~2010-10-07 12:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-07 12:21 portable absolute links in HTML export Łukasz Stelmach
2010-10-07 12:38 ` Carsten Dominik [this message]
2010-10-07 13:13 ` Łukasz Stelmach
2010-10-07 13:19 ` Łukasz Stelmach
2010-10-07 13:29 ` Łukasz Stelmach
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=DE89C92A-80D6-4D65-8A4D-07B236E0641A@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=lukasz.stelmach@iem.pw.edu.pl \
/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.