Fix doc upload

This commit is contained in:
Manish Goregaokar 2015-02-03 00:14:45 +05:30
parent 755adf0dde
commit a3cab14183
2 changed files with 37 additions and 2 deletions

View file

@ -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")