8000 add a link to docs.python.org on the search page by nedbat · Pull Request #2718 · python/pythondotorg · GitHub
[go: up one dir, main page]

Skip to content

add a link to docs.python.org on the search page #2718

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

Merged
merged 2 commits into from
Apr 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions templates/search/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h3>Results</h3>
{% include result.include_template %}
</li>
{% empty %}
<p>No results found.</p>
<li>No results found.</li>
{% endfor %}
</ul>
{% if page.has_previous or page.has_next %}
Expand All @@ -27,8 +27,13 @@ <h3>Results</h3>
{% if page.has_next %}<a href="?q={{ query }}&amp;page={{ page.next_page_number }}">{% endif %}Next &raquo;{% if page.has_next %}</a>{% endif %}
</div>
{% endif %}

<h3>Python language documentation</h3>
<p>If you didn't find what you need, try your search in the
<a href="https://docs.python.org/3/search.html?q={{ request.GET.q | urlencode }}">Python language documentation</a>.
</p>
{% else %}
{# Show some example queries to run, maybe query syntax, something else? #}
{% endif %}
</form>
{% endblock %}
{% endblock %}
0