Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6c2b38f

Browse files
authored
Add a configuration for license URL. (#90)
1 parenta7b271a commit6c2b38f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

‎python_docs_theme/layout.html

Lines changed: 3 additions & 3 deletions
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-
{% transpathto_license=license_file %}See<ahref="{{ 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<ahref="{{ 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 %}{% transpathto_bugs=theme_issues_url%}<ahref="{{ theme_issues_url }}">Found a bug</a>?{% endtrans %}{% endif %}
136+
{% if theme_issues_url %}{% trans %}<ahref="{{ theme_issues_url }}">Found a bug</a>?{% endtrans %}{% endif %}
137137
<br/>
138138

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

‎python_docs_theme/theme.conf

Lines changed: 1 addition & 0 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp