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

Commitf58149c

Browse files
nedbathugovkJacobCoffee
authored
add a link to docs.python.org on the search page (#2718)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>Co-authored-by: Jacob Coffee <jacob@z7x.org>
1 parent1f90000 commitf58149c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎templates/search/search.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h3>Results</h3>
1717
{% include result.include_template %}
1818
</li>
1919
{% empty %}
20-
<p>No results found.</p>
20+
<li>No results found.</li>
2121
{% endfor %}
2222
</ul>
2323
{% if page.has_previous or page.has_next %}
@@ -27,8 +27,13 @@ <h3>Results</h3>
2727
{% if page.has_next %}<ahref="?q={{ query }}&amp;page={{ page.next_page_number }}">{% endif %}Next &raquo;{% if page.has_next %}</a>{% endif %}
2828
</div>
2929
{% endif %}
30+
31+
<h3>Python language documentation</h3>
32+
<p>If you didn't find what you need, try your search in the
33+
<ahref="https://docs.python.org/3/search.html?q={{ request.GET.q | urlencode }}">Python language documentation</a>.
34+
</p>
3035
{% else %}
3136
{# Show some example queries to run, maybe query syntax, something else? #}
3237
{% endif %}
3338
</form>
34-
{% endblock %}
39+
{% endblock %}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp