##// END OF EJS Templates
Made exporter names match template names.
Jonathan Frederic -
Show More
@@ -0,0 +1,27 b''
1 """TODO: Docstring
2 """
3
4 #-----------------------------------------------------------------------------
5 # Copyright (c) 2013, the IPython Development Team.
6 #
7 # Distributed under the terms of the Modified BSD License.
8 #
9 # The full license is in the file COPYING.txt, distributed with this software.
10 #-----------------------------------------------------------------------------
11
12 #-----------------------------------------------------------------------------
13 # Imports
14 #-----------------------------------------------------------------------------
15
16 # local import
17 import basichtml.BasicHtmlExporter
18 from IPython.utils.traitlets import Unicode
19
20 #-----------------------------------------------------------------------------
21 # Classes
22 #-----------------------------------------------------------------------------
23 class FullHtmlExporter(basichtml.BasicHtmlExporter):
24
25 template_file = Unicode(
26 'fullhtml', config=True,
27 help="Name of the template file to use") No newline at end of file
@@ -0,0 +1,27 b''
1 """TODO: Docstring
2 """
3
4 #-----------------------------------------------------------------------------
5 # Copyright (c) 2013, the IPython Development Team.
6 #
7 # Distributed under the terms of the Modified BSD License.
8 #
9 # The full license is in the file COPYING.txt, distributed with this software.
10 #-----------------------------------------------------------------------------
11
12 #-----------------------------------------------------------------------------
13 # Imports
14 #-----------------------------------------------------------------------------
15
16 # local import
17 import python.PythonExporter
18 from IPython.utils.traitlets import Unicode
19
20 #-----------------------------------------------------------------------------
21 # Classes
22 #-----------------------------------------------------------------------------
23 class PythonArmorExporter(python.PythonExporter):
24
25 template_file = Unicode(
26 'python_armor', config=True,
27 help="Name of the template file to use")
@@ -0,0 +1,25 b''
1
2 #-----------------------------------------------------------------------------
3 # Copyright (c) 2013, the IPython Development Team.
4 #
5 # Distributed under the terms of the Modified BSD License.
6 #
7 # The full license is in the file COPYING.txt, distributed with this software.
8 #-----------------------------------------------------------------------------
9
10 #-----------------------------------------------------------------------------
11 # Imports
12 #-----------------------------------------------------------------------------
13
14 # local import
15 import sphinx_howto.SphinxHowtoExporter
16 from IPython.utils.traitlets import Unicode
17 #-----------------------------------------------------------------------------
18 # Classes
19 #-----------------------------------------------------------------------------
20 class SphinxManualExporter(sphinx_howto.SphinxHowtoExporter):
21
22 template_file = Unicode(
23 'sphinx_manual', config=True,
24 help="Name of the template file to use")
25 No newline at end of file
@@ -21,7 +21,7 b' from IPython.utils.traitlets import Unicode'
21 #-----------------------------------------------------------------------------
21 #-----------------------------------------------------------------------------
22 # Classes
22 # Classes
23 #-----------------------------------------------------------------------------
23 #-----------------------------------------------------------------------------
24 class HtmlExporter(exporter.Exporter):
24 class BasicHtmlExporter(exporter.Exporter):
25
25
26 file_extension = Unicode(
26 file_extension = Unicode(
27 'html', config=True,
27 'html', config=True,
@@ -29,13 +29,13 b' class HtmlExporter(exporter.Exporter):'
29 )
29 )
30
30
31 template_file = Unicode(
31 template_file = Unicode(
32 'fullhtml', config=True,
32 'basichtml', config=True,
33 help="Name of the template file to use")
33 help="Name of the template file to use")
34
34
35 def _register_transformers(self):
35 def _register_transformers(self):
36
36
37 #Register the transformers of the base class.
37 #Register the transformers of the base class.
38 super(HtmlExporter, self)._register_transformers()
38 super(BasicHtmlExporter, self)._register_transformers()
39
39
40 #Register latex transformer
40 #Register latex transformer
41 self.register_transformer(nbconvert.transformers.csshtmlheader.CSSHtmlHeaderTransformer)
41 self.register_transformer(nbconvert.transformers.csshtmlheader.CSSHtmlHeaderTransformer)
@@ -18,7 +18,7 b' from nbconvert.transformers.sphinx import SphinxTransformer'
18 #-----------------------------------------------------------------------------
18 #-----------------------------------------------------------------------------
19 # Classes
19 # Classes
20 #-----------------------------------------------------------------------------
20 #-----------------------------------------------------------------------------
21 class SphinxExporter(latex.LatexExporter):
21 class SphinxHowtoExporter(latex.LatexExporter):
22
22
23 template_file = Unicode(
23 template_file = Unicode(
24 'sphinx_howto', config=True,
24 'sphinx_howto', config=True,
@@ -27,7 +27,7 b' class SphinxExporter(latex.LatexExporter):'
27 def _register_transformers(self):
27 def _register_transformers(self):
28
28
29 #Register the transformers of the base class.
29 #Register the transformers of the base class.
30 super(SphinxExporter, self)._register_transformers()
30 super(SphinxHowtoExporter, self)._register_transformers()
31
31
32 #Register sphinx latex transformer
32 #Register sphinx latex transformer
33 self.register_transformer(SphinxTransformer)
33 self.register_transformer(SphinxTransformer)
1 NO CONTENT: file renamed from nbconvert/templates/python-armor.tpl to nbconvert/templates/python_armor.tpl
NO CONTENT: file renamed from nbconvert/templates/python-armor.tpl to nbconvert/templates/python_armor.tpl
General Comments 0
You need to be logged in to leave comments. Login now