Improve parameter required values and ref fix (#36680)

This PR includes:
- An improvement to the parameter listing, where instead of yes/no, it
  is indicated with required/optional (easier when scrolling through a
  long list of parameters)
- Ensure that module reference, eg. M(foobar) do not include the module
  document title
pull/36684/head
Dag Wieers 7 years ago committed by GitHub
parent e520ff2e99
commit 7cf08e9986
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -89,7 +89,7 @@ def rst_ify(text):
try: try:
t = _ITALIC.sub(r"*\1*", text) t = _ITALIC.sub(r"*\1*", text)
t = _BOLD.sub(r"**\1**", t) t = _BOLD.sub(r"**\1**", t)
t = _MODULE.sub(r":ref:`\1`", t) t = _MODULE.sub(r":ref:`\1 <\1>`", t)
t = _URL.sub(r"\1", t) t = _URL.sub(r"\1", t)
t = _CONST.sub(r"`\1`", t) t = _CONST.sub(r"`\1`", t)
except Exception as e: except Exception as e:

@ -115,7 +115,7 @@ Options
<div class="outer-elbow-container"> <div class="outer-elbow-container">
</td> </td>
{# required #} {# required #}
<td><div class="cell-border">{% if value.get('required', False) %}yes{% else %}no{% endif %}</div></td> <td><div class="cell-border">{% if value.get('required', False) %}required{% else %}optional{% endif %}</div></td>
{# default value #} {# default value #}
<td><div class="cell-border">{% if value.default %}@{ value.default }@{% endif %}</div></td> <td><div class="cell-border">{% if value.default %}@{ value.default }@{% endif %}</div></td>
{# choices #} {# choices #}

Loading…
Cancel
Save