Wikilinks in a Directory Hierarchy

I have a rather large gitit wiki that I want to import into devonthink.

The problem of the moment is how to handle links to other pages in the wiki directory hierarchy with posix paths, eg.

[../appointments]()

or

[appointments](…/appointments)

to link to the “appointments” page in the parent directory.

I have thousands of these sorts of links, Converting them to

[appointments](x-devonthink-item://E705C2A2-CFD2-4106-986C-26443E01BB9A)

is onerous and not human friendly for paths within the wiki directory hierarchy (which is still there in the devonthink database!).

How should I handle this?

Thanks!

– Perry

Did you try to index the top level folder (instead of import)?

(Even if your final goal is to import everything you need to first index the whole structure anyway as DEVONthink doesn’t store files in the same way as you know it from Finder. Without indexing there’s no way to resolve the relative links).

Hrm.

[foo](../baz)

relative links now work, but

[foo](/zab)

absolute links don’t.

And, actually, it doesn’t know where to cut my “..” climbing off, and now I’m wandering around my file system. Ick?