-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- closes #73 - uses Algolia free plan with configuration at https://github.com/algolia/docsearch-configs/blob/master/configs/mdanalysis.json - Algolia index is updated every 24 hours. - NOTE: needed to set site.baseurl to empty to make local testing work; according to https://byparker.com/blog/2014/clearing-up-confusion-around-baseurl/ we do NOT need to use it. When running locally my installation failed to load local js and only after setting baseurl to empty would it work. (See #16 (comment))
- Loading branch information
Showing
5 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
|
||
<!-- Algolia DocSearch https://community.algolia.com/docsearch/ --> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script> | ||
<script type="text/javascript"> docsearch({ | ||
apiKey: '{{ site.algolia.read_only_api_key }}', | ||
indexName: '{{ site.algolia.index_name }}', | ||
inputSelector: 'input[type=text]', | ||
debug: true // Set debug to true if you want to inspect the dropdown | ||
}); | ||
</script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,6 @@ | |
{{ content }} | ||
</div> | ||
|
||
{% include footer.html %} | ||
</body> | ||
</html> |