From a917e2f816643378d0610a677156bd7991d0c277 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Antonsson?= Date: Tue, 3 Jun 2014 10:29:43 +0200 Subject: [PATCH] =pro Add watchSources for *.rst to akka-docs --- project/SphinxDoc.scala | 3 +++ 1 file changed, 3 insertions(+) diff --git a/project/SphinxDoc.scala b/project/SphinxDoc.scala index 4bdb59e3da..deea7d2479 100644 --- a/project/SphinxDoc.scala +++ b/project/SphinxDoc.scala @@ -19,6 +19,9 @@ object SphinxDoc { def docsSettings = Seq( sourceDirectory in Sphinx <<= baseDirectory / "rst", + watchSources <++= (sourceDirectory in Sphinx, excludeFilter in Global) map { (source, excl) => + source descendantsExcept ("*.rst", excl) get + }, sphinxPackages in Sphinx <+= baseDirectory { _ / "_sphinx" / "pygments" }, // copy akka-contrib/docs into our rst_preprocess/contrib (and apply substitutions) preprocess in Sphinx <<= (preprocess in Sphinx,