A propos the single binary wiki server. Last time I was looking for something of this kind, I stumbled upon Fossil SCM, which also includes an implementation of Wiki [1].
Editing can be done in Markdown, all version-controlled, there's user support built-in, the whole thing basically resides in a repository, which is a kind of a SQLite db. The wikis can be imported from text files too.
It may be not fancy-looking, but for "note-taking" can be good enough. I guess it may be made to run in Tmux or the likes to have a Wiki served locally to the smartphone.
Wish the Fossil was more templatable, also there's no proper wiki category tagging, but it does work for the purpose.
[1]: https://fossil-scm.org/home/doc/trunk/www/wikitheory.wiki