chiark / gitweb /
documentation: search data format version 2.
authorVladimír Vondruš <mosra@centrum.cz>
Wed, 17 Jul 2019 16:44:32 +0000 (18:44 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Thu, 18 Jul 2019 11:34:34 +0000 (13:34 +0200)
commit3cd9235952ee5280dd373e94fda4f113055c3c95
tree93c9f691f827f284c42b50cf5d1b779c9af5388d
parent4177f237bc5465ca56d54780aa652b09adc22c1c
documentation: search data format version 2.

Instead of having a hardcoded mapping from flags to type names and
associated classes on the JavaScript side, which was very C++-specific,
the new format now moves this mapping directly into the search data.

It's a new section at the end, for each type index containing CSS class
ID (which is still hardcoded, but that's not language specific anyway)
and an UTF-8 name that's displayed in the label. For C++ this makes the
search data file size 107 bytes larger, which isn't significant by any
means.
19 files changed:
documentation/_search.py
documentation/doxygen.py
documentation/search.js
documentation/test_doxygen/js-test-data/empty.bin
documentation/test_doxygen/js-test-data/nested.bin
documentation/test_doxygen/js-test-data/searchdata.b85
documentation/test_doxygen/js-test-data/searchdata.bin
documentation/test_doxygen/js-test-data/unicode.bin
documentation/test_doxygen/js-test-data/wrong-magic.bin
documentation/test_doxygen/js-test-data/wrong-version.bin
documentation/test_doxygen/layout/pages.html
documentation/test_doxygen/layout_generated_doxyfile/index.html
documentation/test_doxygen/layout_minimal/index.html
documentation/test_doxygen/layout_search_opensearch/index.html
documentation/test_doxygen/populate-js-test-data.py
documentation/test_doxygen/test-search.js
documentation/test_doxygen/test_search.py
documentation/test_doxygen/test_undocumented.py
documentation/test_python/layout/index.html