Add mkdocs search indexing.

The builder shouldn’t know about the API,
but hacking it for now.