Skip to content

Commit

Permalink
search: fix index page for single-module documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mhils committed Dec 29, 2021
1 parent 6a1207a commit 990b9b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Unreleased: pdoc next

- Fix some search misses by disabling the word stemmer.
- Fix a bug where the search bar on the index page did not work if only a single module was documented.

# 2021-12-28: pdoc 8.1.0

Expand Down
5 changes: 5 additions & 0 deletions pdoc/templates/default/index.html.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,8 @@
{% endblock %}
{% block module_info %}{% endblock %}
{% block module_contents %}{% endblock %}
{% block search_js %}
{% if search %}
{% include "search.html.jinja2" %}
{% endif %}
{% endblock %}

0 comments on commit 990b9b7

Please sign in to comment.