PmWiki is a great, light, customizable wiki, I recommend it over dokuwiki.
MediaWiki is also a great software, but it's not really light and I would not recommend it for software documentation, it is more suitable for a whole project centered on the wiki.