I use MoinMoin for that (https://moinmo.in/) it's pretty awesome (and portable).
Right now I just run the whole thing out of a Mercurial repo (it's easy to use the MoinMoin codebase as a sub-repo [1]), but I'm planning to do a setup with a container so that the data can directly live in any (Dropbox) folder or repo.
[1] https://moinmo.in/HowTo/Run%20Moin%20from%20a%20Mercurial%20...