Skip to content

Commit

Permalink
Ajout de la recherche hors-ligne - Merge #40 from geotribu/offline-se…
Browse files Browse the repository at this point in the history
…arch
  • Loading branch information
Guts authored Apr 7, 2020
2 parents 26865f3 + 63e8e8f commit 180e7f4
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
2 changes: 2 additions & 0 deletions content/theme/assets/javascript/iframe-worker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 13 additions & 6 deletions content/theme/main.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
{% extends "base.html" %}

{% block config %}
{% if "localsearch" in config["plugins"] %}
<script src="assets/javascript/iframe-worker.js"></script>
<script src="search/search_index.js"></script>
{% endif %}
{% endblock %}

{% block disqus %}
<div class="md-source-date">
<small>
Contributions à cette page : {{ git_page_authors }}
</small>
</div>
{% include "partials/integrations/disqus.html" %}
<div class="md-source-date">
<small>
Contributions à cette page : {{ git_page_authors }}
</small>
</div>
{% include "partials/integrations/disqus.html" %}
{% endblock %}
2 changes: 1 addition & 1 deletion src/mkdocs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ plugins:
lang:
- en
- fr
prebuild_index: true
prebuild_index: python
separator: '[\s\-\.]+'

# Theme
Expand Down
1 change: 1 addition & 0 deletions src/mkdocs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
mkdocs-awesome-pages-plugin==2.2.*
mkdocs-git-authors-plugin==0.3.*
mkdocs-git-revision-date-localized-plugin==0.5.*
mkdocs-localsearch==0.7.*
mkdocs-material>=5.0.*
mkdocs-minify-plugin==0.2.*
markdown-include==0.5.*

0 comments on commit 180e7f4

Please sign in to comment.