Revert "documentation: Workaround for genererating API docs"

This reverts commit 2e4e73133e4e051dd85830db27cebe5e2e2506df.