chiark / gitweb /
doxygen: provide a more meaningful order for results.
authorVladimír Vondruš <mosra@centrum.cz>
Tue, 1 Jan 2019 21:10:38 +0000 (22:10 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Wed, 2 Jan 2019 21:07:11 +0000 (22:07 +0100)
commit1a10e178fbf4d370ba1ae3026e5492c757cfef2e
treec6f94823ea91d5508fb778be306c4285253e994f
parent41e7fdac71e67d7a8324a44959126de083889277
doxygen: provide a more meaningful order for results.

Results of the same length are now ordered like this, instead of
appearing in whatever order they were added:

 * Deprecated and deleted symbols are put on the bottom
 * Then ordered by type:
   * First pages, since they usually provide most information
   * Then namespaces and groups
   * Then classes, structs, unions
   * Then functions
   * Then macros
   * Then enums
   * And enum values and variables last
 * After that, items with the shorter suffix (the least amount of
   function arguments) are preferred over longer
 * Finally, items with shorter prefix are preferred over longer (so e.g.
   it shows a Foo in the root namespace over Foo which is 5 levels deep)

This might get fine-tuned later, but I'm already very happy with the
result.
doxygen/dox2html5.py
doxygen/search.js
doxygen/test/test_search.py