From 3cac1928412672cc8d4c23a751de4dc0bef18d16 Mon Sep 17 00:00:00 2001 From: Viktor Klang Date: Mon, 10 Sep 2012 16:37:29 +0200 Subject: [PATCH] There was an error in the placement of the smartypants setting, fixed that and added exit code to the output if pygment installation fails. --- akka-docs/conf.py | 1 + project/Sphinx.scala | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/akka-docs/conf.py b/akka-docs/conf.py index 2ca3a5c66c..63afaa3bb8 100644 --- a/akka-docs/conf.py +++ b/akka-docs/conf.py @@ -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 = { diff --git a/project/Sphinx.scala b/project/Sphinx.scala index be35d83916..b349265b60 100644 --- a/project/Sphinx.scala +++ b/project/Sphinx.scala @@ -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) }