diff --git a/docs/source/_ext/plugin_markup.py b/docs/source/_ext/plugin_markup.py index 51978f5b..ec7d2c5e 100644 --- a/docs/source/_ext/plugin_markup.py +++ b/docs/source/_ext/plugin_markup.py @@ -55,11 +55,10 @@ def plugin_to_schema_org(plugin: Dict[str, Any]) -> SchemaOrgSoftwarePublication name of the workflow step. If the plugin is marked as a Hermes ``builtin``, this is expressed using ``schema:isPartOf``. """ - keywords = [f"hermes-step-{step}" for step in plugin.get("steps", [])] - - if "harvest" in plugin.get("steps", []) and ( - harvested_files := plugin.get("harvested_files", []) - ): + steps = plugin.get("steps", []) + keywords = [f"hermes-step-{step}" for step in steps] + if "harvest" in steps: + harvested_files = plugin.get("harvested_files", []) keywords += [f"hermes-harvest-{keywordify(file)}" for file in harvested_files] return SchemaOrgSoftwarePublication(