From 08281be06246fe4a1ad3dce1f839ba0c4d7a3a90 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 24 Dec 2023 01:25:47 -0500 Subject: [PATCH] Fix search on Safari and handle errors and `::` queries `::` 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: - fields - methods - aliases --- .../gen_tests/function-overloads/index.html | 89 ++++++++---- .../function-overloads/n-fn.multiple.0.html | 93 ++++++++---- .../function-overloads/n-fn.multiple.1.html | 93 ++++++++---- .../function-overloads/namespace.n.html | 91 ++++++++---- subdoc/gen_tests/markdown/N.html | 91 ++++++++---- subdoc/gen_tests/markdown/S.html | 91 ++++++++---- subdoc/gen_tests/markdown/Syntax.html | 91 ++++++++---- subdoc/gen_tests/markdown/index.html | 89 ++++++++---- subdoc/gen_tests/nested-namespace/index.html | 89 ++++++++---- .../namespace.outer_namespace.html | 91 ++++++++---- .../outer_namespace-fn.outer.html | 93 ++++++++---- ...er_namespace-inner_namespace-fn.inner.html | 95 ++++++++----- .../outer_namespace-namespace.empty.html | 93 ++++++++---- ...r_namespace-namespace.inner_namespace.html | 93 ++++++++---- subdoc/gen_tests/struct-basic/S.html | 91 ++++++++---- subdoc/gen_tests/struct-basic/index.html | 89 ++++++++---- subdoc/gen_tests/struct-complex/Base.html | 91 ++++++++---- .../gen_tests/struct-complex/OtherType.html | 91 ++++++++---- subdoc/gen_tests/struct-complex/S.html | 91 ++++++++---- subdoc/gen_tests/struct-complex/index.html | 89 ++++++++---- .../macro.sus_macro_for_test.html | 91 ++++++++---- .../macro.sus_macro_for_test_fn.html | 91 ++++++++---- subdoc/gen_tests/subdoc-test-style.css | 2 +- subdoc/gen_tests/templates/Concept.html | 91 ++++++++---- subdoc/gen_tests/templates/S.html | 91 ++++++++---- .../gen_tests/templates/TemplateMethods.html | 91 ++++++++---- .../gen_tests/templates/TemplateStruct.html | 91 ++++++++---- .../templates/fn.requires_overload.html | 91 ++++++++---- .../templates/fn.return_template.html | 91 ++++++++---- .../templates/fn.template_function.html | 91 ++++++++---- subdoc/gen_tests/templates/index.html | 89 ++++++++---- .../typenames-across-paths/index.html | 89 ++++++++---- .../n-FunctionParams.html | 93 ++++++++---- .../typenames-across-paths/n-HoldS.html | 93 ++++++++---- .../typenames-across-paths/n-fn.pass_s.html | 93 ++++++++---- .../n-fn.return_nested.html | 93 ++++++++---- .../typenames-across-paths/n-fn.return_s.html | 93 ++++++++---- .../typenames-across-paths/namespace.n.html | 91 ++++++++---- .../namespace.other.html | 91 ++++++++---- .../other-namespace.subother.html | 93 ++++++++---- .../other-subother-C.html | 95 ++++++++----- .../other-subother-S-FirstNested-Nested.html | 99 ++++++++----- .../other-subother-S-FirstNested.html | 97 ++++++++----- .../other-subother-S.html | 95 ++++++++----- .../other-subother-fn.subother_func.html | 95 ++++++++----- ...ther_func_with_overload.hasanoverload.html | 95 ++++++++----- subdoc/lib/gen/generate.cc | 5 +- subdoc/lib/gen/generate_concept.cc | 1 - subdoc/lib/gen/generate_cpp_path.cc | 9 ++ subdoc/lib/gen/generate_cpp_path.h | 5 + subdoc/lib/gen/generate_function.cc | 1 - subdoc/lib/gen/generate_head.cc | 81 +++++++---- subdoc/lib/gen/generate_macro.cc | 1 - subdoc/lib/gen/generate_namespace.cc | 99 +++++++++---- subdoc/lib/gen/generate_record.cc | 134 +++++++++++++++++- subdoc/lib/gen/html_writer.h | 6 - subdoc/lib/gen/json_writer.h | 9 +- 57 files changed, 3049 insertions(+), 1441 deletions(-) diff --git a/subdoc/gen_tests/function-overloads/index.html b/subdoc/gen_tests/function-overloads/index.html index 3d06ec11c..b41f7056b 100644 --- a/subdoc/gen_tests/function-overloads/index.html +++ b/subdoc/gen_tests/function-overloads/index.html @@ -10,6 +10,7 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +