areusch commented on code in PR #13627: URL: https://github.com/apache/tvm/pull/13627#discussion_r1060783055
########## docs/conf.py: ########## @@ -84,6 +86,148 @@ def git_describe_version(original_version): version = git_describe_version(tvm.__version__) release = version + +def monkey_patch(module_name, func_name): Review Comment: ahh i see. potentially you could theoretically override sphinx-gallery's `reset_modules` and use the [optionally-passed `when` parameter](https://github.com/sphinx-gallery/sphinx-gallery/blob/4484d35bb556bfe081156f210904abce8732ffbf/sphinx_gallery/scrapers.py#L592) to decide whether to monkey-patch or un-monkey-patch. i agree it's sort of equivalent both ways, i just wish there was a way to avoid "poisoning" sphinx-gallery permanently by importing conf.py. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
