Skip to content

Commit

Permalink
doc: looks like anonymous link trick do not work in same document
Browse files Browse the repository at this point in the history
Looks like the trick only works when the same link label is repeated across
different documents.

No choice but to also change the link label so they are different.

Warning, treated as error:
/zstore/repos/emu/emu/processes/wps_inout.py:docstring of emu.processes.wps_inout.InOut:59:Duplicate explicit target name: "pywps docs".
Makefile:20: recipe for target 'html' failed
make[1]: *** [html] Error 2
make[1]: Leaving directory '/zstore/repos/emu/docs'
Makefile:166: recipe for target 'docs' failed
make: *** [docs] Error 2
  • Loading branch information
tlvu committed Jul 29, 2020
1 parent cfcaedf commit af7cd1e
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions emu/processes/wps_inout.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,8 @@ def __init__(self):
LiteralInput('int_range', 'Integer Range',
abstract='Choose number from range: 1-10 (step 1), 100-200 (step 10)',
metadata=[
MetadataUrl('PyWPS Docs',
'https://pywps.readthedocs.io/en/master/api.html#pywps.inout.literaltypes.AllowedValue', # noqa
anonymous=True),
Metadata('AllowedValue PyWPS Docs',
'https://pywps.readthedocs.io/en/master/api.html#pywps.inout.literaltypes.AllowedValue'), # noqa
Metadata('AllowedValue Example', 'http://docs.opengeospatial.org/is/14-065/14-065.html#98'), # noqa
],
data_type='integer',
Expand All @@ -83,19 +82,17 @@ def __init__(self):
LiteralInput('any_value', 'Any Value',
abstract='Enter any value.',
metadata=[
MetadataUrl('PyWPS Docs',
'https://pywps.readthedocs.io/en/master/api.html#pywps.inout.literaltypes.AnyValue', # noqa
anonymous=True),
Metadata('AnyValue PyWPS Docs',
'https://pywps.readthedocs.io/en/master/api.html#pywps.inout.literaltypes.AnyValue'), # noqa
],
allowed_values=AnyValue(),
default='any value',
mode=MODE.SIMPLE,),
LiteralInput('ref_value', 'Referenced Value',
abstract='Choose a referenced value',
metadata=[
MetadataUrl('PyWPS Docs',
'https://pywps.readthedocs.io/en/master/_modules/pywps/inout/literaltypes.html', # noqa
anonymous=True),
Metadata('PyWPS Docs',
'https://pywps.readthedocs.io/en/master/_modules/pywps/inout/literaltypes.html'), # noqa
],
data_type='string',
allowed_values=ValuesReference(
Expand Down

0 comments on commit af7cd1e

Please sign in to comment.