Convert doc to legacy mode in get_docs