Don't expect input to be in every workflow in doc generation
Change-Id: I7175af3d6154b383513d54f5a4848f84a8acb168
This commit is contained in:
parent
b726d8434f
commit
81514076c8
|
@ -57,15 +57,16 @@ def _workbook_to_rst(name, workbook):
|
|||
yield ' {}'.format(workflow['description'])
|
||||
yield ''
|
||||
|
||||
yield ' Workflow inputs:'
|
||||
yield ''
|
||||
for input_param in workflow['input']:
|
||||
try:
|
||||
yield ' :input {}: Default: {}'.format(
|
||||
*input_param.items()[0])
|
||||
except:
|
||||
yield ' :input {}: Required.'.format(input_param)
|
||||
yield ''
|
||||
if 'input' in workflow:
|
||||
yield ' Workflow inputs:'
|
||||
yield ''
|
||||
for input_param in workflow['input']:
|
||||
try:
|
||||
yield ' :input {}: Default: {}'.format(
|
||||
*input_param.items()[0])
|
||||
except:
|
||||
yield ' :input {}: Required.'.format(input_param)
|
||||
yield ''
|
||||
|
||||
|
||||
def get_workbooks():
|
||||
|
|
Loading…
Reference in New Issue