What about using Dokuwiki or Tiddlywiki (hosted via PicoCMS) in Nextcloud?
authpdo for allowing Nextcloud + Dokuwiki users to share credentials.
Here is a detailed thread from this very forum on how to get Dokuwiki and Nextcloud functioning properly. Lots of various apps, ideas, and plug-ins.