Skip to content
Browse files
allow different asciidoc binaries
  • Loading branch information
ralsina committed May 9, 2015
1 parent 75a2f72 commit 116ec290259188cb5cd170c272d945d11ecda5cc
Showing 2 changed files with 7 additions and 1 deletion.
@@ -51,8 +51,9 @@ class CompileAsciiDoc(PageCompiler):

def compile_html(self, source, dest, is_two_file=True):
binary ='ASCIIDOC_BINARY', 'asciidoc')
subprocess.check_call(('asciidoc', '-b', 'html5', '-s', '-o', dest, source))
subprocess.check_call((binary, '-b', 'html5', '-s', '-o', dest, source))
except OSError as e:
if e.strreror == 'No such file or directory':
req_missing(['asciidoc'], 'build this site (compile with asciidoc)', python=False)
@@ -4,3 +4,8 @@ COMPILERS["asciidoc"] = ('.asc',)
# Add asciidoc files to your POSTS, PAGES
POSTS = POSTS + (("posts/*.asc", "posts", "post.tmpl"),)
PAGES = PAGES + (("stories/*.asc", "posts", "post.tmpl"),)

# You can choose what command to use for processing.
# For example, you can replace asciidoc with asciidoctor
# Or use the full path to the program.
# ASCIIDOC_BINARY = "asciidoc"

0 comments on commit 116ec29

Please sign in to comment.