Skip to content

Commit f58149c

Browse files
nedbathugovkJacobCoffee
authored
add a link to docs.python.org on the search page (#2718)
Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Jacob Coffee <[email protected]>
1 parent 1f90000 commit f58149c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

templates/search/search.html

+7-2
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 %}<a href="?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+
<a href="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)