Gitea, GitHub and the like allow the owners of a repository to create an associated wiki by selecting a preference check box. You should be able to copy the relevant code from any free/open source implementation. It would be useful for providing Frequently Asked Questions for the community for example.