Build: `config.build.commands` is always present
Make sure that `config.build.commands` is not empty.
@@ -1345,7 +1345,7 @@ class BuildConfigV2(BuildConfigBase):
@property
def doctype(self):
- if "commands" in self._config["build"]:
+ if self._config["build"]["commands"]:
return GENERIC
if self.mkdocs:
