From 93cc21daccccd324ae1a2b78239a1873c5bbf71a Mon Sep 17 00:00:00 2001 From: Roy Willy Haug <5484176+roywilly@users.noreply.github.com> Date: Wed, 22 Mar 2023 12:55:42 +0100 Subject: [PATCH] Try to populate fmu-docs ert plugin documentation (#154) --- src/fmu/sumo/uploader/scripts/sumo_upload.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/fmu/sumo/uploader/scripts/sumo_upload.py b/src/fmu/sumo/uploader/scripts/sumo_upload.py index a20754a7..d348a815 100644 --- a/src/fmu/sumo/uploader/scripts/sumo_upload.py +++ b/src/fmu/sumo/uploader/scripts/sumo_upload.py @@ -195,3 +195,15 @@ def legacy_ertscript_workflow(config): workflow.description = DESCRIPTION workflow.examples = EXAMPLES workflow.category = "export" + + +@hook_implementation +def job_documentation(job_name): + if job_name != "SUMO_UPLOAD": + return None + + return { + "description": DESCRIPTION, + "examples": EXAMPLES, + "category": "export", + }