replace do with set _ =

This commit is contained in:
MKLeb 2023-08-29 10:13:34 -04:00 committed by Pedro Algarvio
parent 2d214c8e48
commit 2b8f7d3669
2 changed files with 2 additions and 3 deletions

View file

@ -4,13 +4,13 @@
{%- set link_text = [] %}
{%- for link_tuple in rellinks %}
{%- do link_text.append(link_tuple[3]) %}
{%- set _ = link_text.append(link_tuple[3]) %}
{%- endfor %}
{%- for rellink_add in [
('glossary', 'Glossary', 'g', 'Glossary'),
('contents', 'Table of Contents', 't', 'Table of Contents'),
] %}
{%- if rellink_add[3] not in link_text %}{% do = rellinks.append(rellink_add) %}{% endif %}
{%- if rellink_add[3] not in link_text %}{% set _ = rellinks.append(rellink_add) %}{% endif %}
{%- endfor %}
{%- set reldelim1 = reldelim1 is not defined and ' »' or reldelim1 %}

View file

@ -153,7 +153,6 @@ extensions = [
"saltrepo",
"myst_parser",
"sphinxcontrib.spelling",
"jinja2.ext.do",
#'saltautodoc', # Must be AFTER autodoc
]