mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Remove some files not needed with custom searchindex
This commit is contained in:
parent
13c54fc94c
commit
a8e2f75a89
3 changed files with 3 additions and 26 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# Minimal makefile for Sphinx documentation
|
||||
#
|
||||
# Makefile to control Evennia documentation building.
|
||||
# Most common commands are `make help`, `make quick` and `make local`.
|
||||
|
||||
# You can set these variables from the command line, and also
|
||||
# from the environment for the first two.
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
sphinx==2.4.4
|
||||
sphinx-multiversion==0.1.1
|
||||
lunr==0.5.8
|
||||
|
||||
# recommonmark custom branch with evennia-specific fixes
|
||||
git+https://github.com/evennia/recommonmark.git@evennia-mods#egg=recommonmark
|
||||
|
|
|
|||
|
|
@ -1,24 +0,0 @@
|
|||
<script type="text/javascript">
|
||||
var Search = {
|
||||
store : null,
|
||||
setIndex : function (data) {
|
||||
this.store = data.store;
|
||||
},
|
||||
};
|
||||
</script>
|
||||
{# The script searchindex.js contains the code Search.setIndex(...) where
|
||||
the content is an object built from IndexBuilder.freeze(). So we need to
|
||||
setup the Search.setIndex function beforehand just to store the data.
|
||||
This should all be finished when onload fires, and at that point the code in
|
||||
searchbox.js will pull the data out of Search.store and build the actual
|
||||
index and callbacks.
|
||||
#}
|
||||
<script src="{{ pathto('searchindex.js', 1) }}" type="text/javascript"></script>
|
||||
|
||||
<form class="search" action="" method="get" autocomplete="new-password">
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
<input type="hidden" id="ls_lunrsearch-highlight" value="{{ lunrsearch_highlight }}" />
|
||||
<input type="text" class="search-field" id="ls_search-field" name="q" placeholder="Search API" />
|
||||
<ul class="results" id="ls_search-results"></ul>
|
||||
</form>
|
||||
Loading…
Add table
Add a link
Reference in a new issue