Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow copyright to contain multiple entries #10983

Merged
merged 10 commits into from May 11, 2023
5 changes: 5 additions & 0 deletions sphinx/themes/basic/layout.html
Expand Up @@ -198,6 +198,11 @@ <h3>{{ _('Navigation') }}</h3>
{%- if show_copyright %}
{%- if hasdoc('copyright') %}
{% trans path=pathto('copyright'), copyright=copyright|e %}&#169; <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}
{%- elif copyright is iterable and copyright is not string %}
{% for copyright_ in copyright %}
{% trans copyright=copyright_|e %}&#169; Copyright {{ copyright_ }}.{% endtrans %}
{%- if not loop.last %}<br/>{%- endif %}
{% endfor %}
{%- else %}
{% trans copyright=copyright|e %}&#169; Copyright {{ copyright }}.{% endtrans %}
{%- endif %}
Expand Down