1 " NOTE: the root of the wiki is considered the first directory that contains a
2 " .ikiwiki folder, except $HOME/.ikiwiki (the usual ikiwiki libdir)
4 That's not going to work in all situations; for example, with an ikiwiki which uses git as the backend, the normal setup is that one has
6 * a bare git repository
7 * a git repository which ikiwiki builds the wiki from (which has a .ikiwiki directory in it)
8 * an *additional* git repository cloned from the bare repository, which is used for making changes from the command-line rather than the web. It is this repository in which one would be editing files with vim, and *this* repository does not have a .ikiwiki directory in it. It does have a .git directory in the root, however, so I suppose you could use that as a method of detection of a root directory, but of course that would only work for git repositories.
10 -- [[KathrynAndersen]]
12 You are completely right; all of my wikis are compiled both locally and
13 remotely, and so the local repo also has a `.ikiwiki` folder. And that's not the
16 checking for a `.git` dir would not work when the wiki's source files aren't
17 located at the root of the repo.
19 So, besides of doing a `touch .ikiwiki` at the root of the wiki in your local
20 repo, do you see any alternative?