darktable-org / dtdocs

darktable user manual
GNU General Public License v3.0
74 stars 74 forks source link

search broken #359

Closed elstoc closed 2 years ago

elstoc commented 2 years ago

Since we changed the configuration so that the default language (en-us) appears in its own subdirectory, the search no longer works on gh pages or docs.darktable.org.

Console shows the following errors:

Screenshot_2021-10-31_11-24-38

The only place I can see this mentioned is

./themes/hugo-darktable-docs-theme/assets/js/app.js:    request.open('GET', '{{ "index.json" | absURL }}', true);
elstoc commented 2 years ago

TBH I think this was probably always broken for translated pages and moving to en-us by default has shown up the issue. The problem is that there is only one app.js for the whole site (not one for each translation) so it can only reference one index.json file.

elstoc commented 2 years ago

Ok that looks to have worked. Closing.