chromium / subspace

A concept-centered standard library for C++20, enabling safer and more reliable products and a more modern feel for C++ code.; Also home of Subdoc the code-documentation generator.
https://suslib.cc
Apache License 2.0
89 stars 15 forks source link

Fix search on Safari and handle errors and `::` queries #447

Closed danakj closed 10 months ago

danakj commented 10 months ago

:: needs to be escaped to a space, since : is handled specially by lunrjs.

Errors during search get displayed on the page.

Avoid import for json files as Safari doens't support it. Instead write a JS file which sets a variable, and load it through a script tag.

Generate search index items for things without pages of their own: