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:
parent
19d01442ec
commit
3cac192841
2 changed files with 2 additions and 1 deletions
|
|
@ -50,6 +50,7 @@ html_show_sourcelink = False
|
||||||
html_show_sphinx = False
|
html_show_sphinx = False
|
||||||
html_show_copyright = True
|
html_show_copyright = True
|
||||||
htmlhelp_basename = 'Akkadoc'
|
htmlhelp_basename = 'Akkadoc'
|
||||||
|
html_use_smartypants = False
|
||||||
html_add_permalinks = ''
|
html_add_permalinks = ''
|
||||||
|
|
||||||
html_context = {
|
html_context = {
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ object Sphinx {
|
||||||
val env = "PYTHONPATH" -> target.absolutePath
|
val env = "PYTHONPATH" -> target.absolutePath
|
||||||
s.log.debug("Command: " + command.mkString(" ") + "\nEnv:" + env)
|
s.log.debug("Command: " + command.mkString(" ") + "\nEnv:" + env)
|
||||||
val exitCode = Process(command, cwd, env) ! logger
|
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)
|
(pygments * ("*.egg-info" | "build" | "temp")).get.foreach(IO.delete)
|
||||||
s.log.info("Sphinx pygments styles installed at: " + target)
|
s.log.info("Sphinx pygments styles installed at: " + target)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue