build: make the 'doc' target generic
Version 2.5.1