There was an error in the placement of the smartypants setting, fixed that and added exit code to the output if pygment installation fails.

This commit is contained in:
Viktor Klang 2012-09-10 16:37:29 +02:00
parent 19d01442ec
commit 3cac192841
2 changed files with 2 additions and 1 deletions

View file

@ -50,6 +50,7 @@ html_show_sourcelink = False
html_show_sphinx = False
html_show_copyright = True
htmlhelp_basename = 'Akkadoc'
html_use_smartypants = False
html_add_permalinks = ''
html_context = {

View file

@ -52,7 +52,7 @@ object Sphinx {
val env = "PYTHONPATH" -> target.absolutePath
s.log.debug("Command: " + command.mkString(" ") + "\nEnv:" + env)
val exitCode = Process(command, cwd, env) ! logger
if (exitCode != 0) sys.error("Failed to install custom Sphinx pygments styles.")
if (exitCode != 0) sys.error("Failed to install custom Sphinx pygments styles: exit code " + exitCode)
(pygments * ("*.egg-info" | "build" | "temp")).get.foreach(IO.delete)
s.log.info("Sphinx pygments styles installed at: " + target)
}