This would most likely involve writing a browser extension, and I don’t think we’re likely to do that (though the community is free to take a crack at it themselves if there is demand for it.)
For what it’s worth, it doesn’t require writing a browser extension. This can be done in a standard way by writing an OpenSearch description. See Mozilla’s documentation here:
But since you’re using Sphinx to generate the docs, I’m pretty sure you can ask it to generate the OpenSearch description for you:
Very interesting, thanks. I think we’d be willing to accept such a change into CMake if someone can prove that it works - and it sounds like it wouldn’t require writing much code.
The html_use_opensearch option mentioned above must be set for specific publication URLs, so I don’t think it makes sense to do that in CMake’s upstream source. Kitware uses an internal branch with a few tweaks for publication on the cmake.org site, so this could be added to that.
I’ve updated the cmake.org docs such that starting with CMake 3.18 (currently the latest), the Sphinx documentation pages contain an OpenSearch description link in their header. The OpenSearch description tells browsers how to search under the Sphinx documentation for CMake’s latest version. Visit https://cmake.org/cmake/help/latest/ with an OpenSearch-capable browser to see this in action.