(oinfo)
| 105 | import docrepr.sphinxify as sphx |
| 106 | |
| 107 | def sphinxify(oinfo): |
| 108 | wrapped_docstring = sphx.wrap_main_docstring(oinfo) |
| 109 | |
| 110 | def sphinxify_docstring(docstring): |
| 111 | with TemporaryDirectory() as dirname: |
| 112 | return { |
| 113 | "text/html": sphx.sphinxify(wrapped_docstring, dirname), |
| 114 | "text/plain": docstring, |
| 115 | } |
| 116 | |
| 117 | return sphinxify_docstring |
| 118 | except ImportError: |
| 119 | sphinxify = None |
| 120 |
no outgoing calls
no test coverage detected
searching dependent graphs…