Skip to content
Permalink
Browse files

Restore old is_two_file value

  • Loading branch information
Kwpolska committed Oct 14, 2016
1 parent 7dfc111 commit 57f031406856bc3de2d0dcde962b6b7be68e453f
@@ -41,7 +41,7 @@ class CompileHtml(PageCompiler):
name = "html"
friendly_name = "HTML"

def compile(self, source, dest, is_two_file=False, post=None, lang=None):
def compile(self, source, dest, is_two_file=True, post=None, lang=None):
"""Compile the source file into HTML and save as dest."""
makedirs(os.path.dirname(dest))
with io.open(dest, "w+", encoding="utf8") as out_file:
@@ -63,7 +63,7 @@ def set_site(self, site):

self.config_dependencies.append(str(sorted(site.config.get("MARKDOWN_EXTENSIONS"))))

def compile(self, source, dest, is_two_file=False, post=None, lang=None):
def compile(self, source, dest, is_two_file=True, post=None, lang=None):
"""Compile the source file into HTML and save as dest."""
if markdown is None:
req_missing(['markdown'], 'build this site (compile Markdown)')
@@ -50,7 +50,7 @@ def set_site(self, site):
self.config_dependencies = [str(site.config['PANDOC_OPTIONS'])]
super(CompilePandoc, self).set_site(site)

def compile(self, source, dest, is_two_file=False, post=None, lang=None):
def compile(self, source, dest, is_two_file=True, post=None, lang=None):
"""Compile the source file into HTML and save as dest."""
makedirs(os.path.dirname(dest))
try:
@@ -42,7 +42,7 @@ class CompilePhp(PageCompiler):
name = "php"
friendly_name = "PHP"

def compile(self, source, dest, is_two_file=False, post=None, lang=None):
def compile(self, source, dest, is_two_file=True, post=None, lang=None):
"""Compile the source file into HTML and save as dest."""
makedirs(os.path.dirname(dest))
with io.open(dest, "w+", encoding="utf8") as out_file:
@@ -95,7 +95,7 @@ def compile_html_string(self, data, source_path=None, is_two_file=True):
"""Compile reST into HTML strings."""
return self.compile_string(data, source_path, is_two_file)

def compile(self, source, dest, is_two_file=False, post=None, lang=None):
def compile(self, source, dest, is_two_file=True, post=None, lang=None):
"""Compile the source file into HTML and save as dest."""
makedirs(os.path.dirname(dest))
error_level = 100

0 comments on commit 57f0314

Please sign in to comment.
You can’t perform that action at this time.