docs: Make apidoc depend on generated files

This fixes ordering issue when building docs from clean checkout.