This has been already done on our server (see https://github.com/phpmyadmin/scripts/issues/11), so it doesn't make sense to test documentation build with apigen. If Sami supports some kind of lint mode, it should be enabled in the CI.