build: fix new files handling at documentation generation