Pelican - How to update the Search content
mar. 15 janvier 2019 by Martin DeudonThe Search tool for this site is based on Tipue Search. This tool requires the content of the site to be indexed.
One way to do this is explained here but it does not seems to work when the site is publish on github pages as it is the case now.
Another way to update the content, is to use the tipue_search pelican plugin - which should already be in the pelicanplugins directory.
Each time you regenerate the html code, the tipuesearch_content.json file is updated. This file is at the root of the output directory. The new version of Tipue Search does not work the .json file anymore, the content of this file need to be placed in a javascript file (.js).
This file is called tipuesearch_content.js and must be placed in the pelicantheme/static/tipuesearch/ directory.
The only difference between the .json file and the .js file is that the .js file starts with :
var tipuesearch = {"pages":[{"title": ....
Thus you only need to add var tipusearch =
at the begining of the .json file, change the extension to js
and place it in the pelicantheme/static/tipuesearch/ directory.