template: Search through the content files

Now that the index has a "content" type for the documents, we need to
handle it properly.

Since we show the title of the content files in the results, we need to
move the "<code>…</code>" elements from the result generator to a
separate function, so that we don't show document titles in the same way
as identifiers and symbols.
3 jobs for index-content-files in 1 minute and 43 seconds (queued for 4 seconds)
Status Name Job ID Coverage
  Check
passed flake8 #1455009

00:01:32

failed mypy #1455010
allowed to fail

00:01:32

passed reuse #1455011

00:01:43

 
Name Stage Failure
failed
mypy Check
gidocgen/gir/parser.py:982: error: Argument "get_type" to "GType" has incompatible type "Optional[str]"; expected "str"
gidocgen/gir/parser.py:1004: error: Argument "name" to "Union" has incompatible type "Optional[str]"; expected "str"
gidocgen/gir/parser.py:1004: error: Argument "symbol_prefix" to "Union" has incompatible type "Optional[str]"; expected "str"
gidocgen/gir/parser.py:1004: error: Argument "ctype" to "Union" has incompatible type "Optional[str]"; expected "str"
gidocgen/gir/parser.py:1006: error: Argument 1 to "set_version" of "GIRElement" has incompatible type "Optional[str]"; expected "str"
gidocgen/utils.py:809: error: Need type annotation for 'found_programs' (hint: "found_programs: Dict[<type>, <type>] = ...")
Found 205 errors in 3 files (checked 17 source files)
Cleaning up file based variables
ERROR: Job failed: exit code 1