Setup as a sphinx extension.
(app)
| 7 | from IPython.lib.lexers import IPyLexer |
| 8 | |
| 9 | def setup(app): |
| 10 | """Setup as a sphinx extension.""" |
| 11 | |
| 12 | # This is only a lexer, so adding it below to pygments appears sufficient. |
| 13 | # But if somebody knows what the right API usage should be to do that via |
| 14 | # sphinx, by all means fix it here. At least having this setup.py |
| 15 | # suppresses the sphinx warning we'd get without it. |
| 16 | metadata = {'parallel_read_safe': True, 'parallel_write_safe': True} |
| 17 | return metadata |
| 18 | |
| 19 | # Register the extension as a valid pygments lexer. |
| 20 | # Alternatively, we could register the lexer with pygments instead. This would |
nothing calls this directly
no outgoing calls
no test coverage detected