"Identifier not used" is weird, replace it by "unknown identifier" and
give the search identifier name in the header.
Also improve the autocomplete comment. Make it human-friendly and
explain why people got autocompleted to a symbol that does not exist.
Also, only show it if the symbol actually exists. That way we only
tell "maybe autocomplete lead you here" only in cases where
autocomplete can actually lead you here.
To test this feature:
- search for any random symbol, you'll see "Unknown identifier '...'"
- search for a symbol that exists in another version as the selected
one. For example __NR_epoll_pwait2 appeared in musl v1.2.5. You'll
see the same header message plus a comment about how the symbol
exists in another version.
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
Added an ability to customize contents of meta description tag in
templates that inherit from layout. This replaces the default
description previously used in all views.
This change could help with SEO and missing descriptions in search
results (#167). It's based on advice from
https://developers.google.com/search/docs/appearance/snippet
> Create unique descriptions for each page on your site
> Programmatically generate descriptions
This is not guaranteed to fix the issue, search engines are opaque.
All custom descriptions start with "Elixir Cross Referencer - ".
Currently customized descriptions:
* source - path to the file, project name and version
* ident - name of the searched identifier, project name and version
Everything else uses the previous, default description.