##// END OF EJS Templates
Change hardcoded functions to use reflection instead.
Change hardcoded functions to use reflection instead.

File last commit:

r10630:d5a4e2e2
r10633:183c8cfe
Show More
sphinx.py
34 lines | 1.3 KiB | text/x-python | PythonLexer
#-----------------------------------------------------------------------------
# Copyright (c) 2013, the IPython Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------------------------------------
# local import
import latex
from IPython.utils.traitlets import Unicode
from nbconvert.transformers.sphinx import SphinxTransformer
#-----------------------------------------------------------------------------
# Classes
#-----------------------------------------------------------------------------
class SphinxExporter(latex.LatexExporter):
template_file = Unicode(
'sphinx_howto', config=True,
help="Name of the template file to use")
def _register_transformers(self):
#Register the transformers of the base class.
super(SphinxExporter, self)._register_transformers()
#Register sphinx latex transformer
self.register_transformer(SphinxTransformer)