Skip to content

Commit 6c2b38f

Browse files
authored
Add a configuration for license URL. (#90)
1 parent a7b271a commit 6c2b38f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Diff for: python_docs_theme/layout.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,14 @@ <h3>{{ _('Navigation') }}</h3>
126126
<br />
127127
{% trans %}Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.{% endtrans %}
128128
<br />
129-
{% trans pathto_license=license_file %}See <a href="{{ license_file }}">History and License</a> for more information.{% endtrans %}
130-
<br /><br />
129+
{% if theme_license_url %}{% trans license_file=theme_license_url %}See <a href="{{ license_file }}">History and License</a> for more information.{% endtrans %}<br />{% endif %}
130+
<br />
131131

132132
{% include "footerdonate.html" %}
133133
<br />
134134

135135
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
136-
{% if theme_issues_url %}{% trans pathto_bugs=theme_issues_url %}<a href="{{ theme_issues_url }}">Found a bug</a>?{% endtrans %}{% endif %}
136+
{% if theme_issues_url %}{% trans %}<a href="{{ theme_issues_url }}">Found a bug</a>?{% endtrans %}{% endif %}
137137
<br />
138138

139139
{% trans sphinx_version=sphinx_version|e %}Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}

Diff for: python_docs_theme/theme.conf

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ codebgcolor = #eeffcc
2525
codetextcolor = #333333
2626

2727
issues_url =
28+
license_url =
2829
root_name = Python
2930
root_url = https://www.python.org/
3031
root_icon = py.svg

0 commit comments

Comments
 (0)