Teach the Publish button to generate a JSON index suitable for <cxx-foreign-index>.