aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/post_build_commands.py
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-02-03 00:14:45 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-02-03 00:14:45 +0530
commita3cab14183f63dd136f75d49fe5583760daaea30 (patch)
tree728a1c567c7d54f9255145c9428fd4ea4a12894a /python/servo/post_build_commands.py
parent755adf0ddefb060007c0319655f994445aea4709 (diff)
downloadservo-a3cab14183f63dd136f75d49fe5583760daaea30.tar.gz
servo-a3cab14183f63dd136f75d49fe5583760daaea30.zip
Fix doc upload
Diffstat (limited to 'python/servo/post_build_commands.py')
-rw-r--r--python/servo/post_build_commands.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/servo/post_build_commands.py b/python/servo/post_build_commands.py
index ee9987358ba..ccb78a9fd1c 100644
--- a/python/servo/post_build_commands.py
+++ b/python/servo/post_build_commands.py
@@ -78,7 +78,9 @@ class MachCommands(CommandBase):
help="Command-line arguments to be passed through to cargo doc")
def doc(self, params):
self.ensure_bootstrapped()
-
+ if not path.exists(path.join(
+ self.config["tools"]["rust-root"], "doc")):
+ Registrar.dispatch("bootstrap-rust-docs", context=self.context)
rust_docs = path.join(self.config["tools"]["rust-root"], "doc")
docs = path.join(
self.context.topdir, "components", "servo", "target", "doc")