exclude file support for apidocs

issue #1797