diff --git a/converters/reveal.py b/converters/reveal.py
index da2733e..5ba223a 100644
--- a/converters/reveal.py
+++ b/converters/reveal.py
@@ -14,11 +14,8 @@ import itertools
class ConverterReveal(ConverterHTML):
#"""
- #Convert a notebook to a html slideshow.
-
- #It generates a static html slideshow based reveal.js.
- #The delimiters for each "Header slide", "Slide"", and "Fragment"
- #are retrieved from the 'slideshow' metadata.
+ #Convert a ipython notebook to a html slideshow
+ #based in reveal.js library.
#"""
@text_cell
@@ -30,13 +27,10 @@ class ConverterReveal(ConverterHTML):
def render_code(self, cell):
if not cell.input:
return []
-
lines = []
meta_code = self.meta2str(cell.metadata)
lines.extend([meta_code])
-
lines.extend(['
'])
-
lines.append('
')
n = self._get_prompt_number(cell)
lines.append(
@@ -46,20 +40,15 @@ class ConverterReveal(ConverterHTML):
lines.append(highlight(cell.input))
lines.append('
') # input_area
lines.append('
') # input
-
if cell.outputs:
lines.append('')
lines.append('
')
-
for output in coalesce_streams(cell.outputs):
conv_fn = self.dispatch(output.output_type)
lines.extend(conv_fn(output))
-
lines.append('
') # output
lines.append('
') # output_wrapper
-
lines.append('') # cell
-
return lines
@text_cell
@@ -184,14 +173,11 @@ class ConverterReveal(ConverterHTML):
return os.path.abspath(outfile)
def header_body(self):
- """Return the body of the header as a list of strings."""
-
+ "return the body of the header as a list of strings"
from pygments.formatters import HtmlFormatter
-
header = []
static = os.path.join(path.get_ipython_package_dir(),
- 'frontend', 'html', 'notebook', 'static',
- )
+ 'frontend', 'html', 'notebook', 'static',)
here = os.path.split(os.path.realpath(__file__))[0]
css = os.path.join(static, 'css')
for sheet in [
@@ -207,13 +193,11 @@ class ConverterReveal(ConverterHTML):
os.path.join(here, '..', 'css', 'reveal_html.css'),
]:
header.extend(self._stylesheet(sheet))
-
# pygments css
pygments_css = HtmlFormatter().get_style_defs('.highlight')
header.extend([''])
header.extend(self.in_tag('style', pygments_css,
dict(type='"text/css"')))
-
return header
def template_read(self):
@@ -235,7 +219,6 @@ class ConverterReveal(ConverterHTML):
def optional_header(self):
optional_header_body = self.template_split()
- #return optional_header_body[0]
return ['', '', ''] + \
optional_header_body[0] + self.header_body() + \
['', '']
diff --git a/templates/reveal_base.html b/templates/reveal_base.html
index bbdb359..b23d112 100644
--- a/templates/reveal_base.html
+++ b/templates/reveal_base.html
@@ -55,14 +55,14 @@
});
-
+ //