geolexica / geolexica-server

Generalized backend for Geolexica sites
2 stars 1 forks source link

Concepts search will break if configured formats does not include `json` #55

Open skalee opened 4 years ago

skalee commented 4 years ago

JSON files are not generated when enabled formats does not include json. The problem is that search engine depends on api/concepts-index-list.json. This file should be generated anyway, and perhaps renamed or moved outside /api to avoid mistakes in future.

Not critical for now as all the sites have json format enabled.

skalee commented 4 years ago

This requires more attention because this…

https://github.com/geolexica/geolexica-server/blob/a844731c70f73828b53dc70513703c678f1a6311/lib/jekyll/geolexica/meta_pages_generator.rb#L47-L51

…is obviously insufficient. Not only in context of search index, but also for steering the other formats.

EDIT: My bad. We don't have meta pages in any other formats, hence this is enough. Though not very clean and bit confusing.