Run cargo doc in the ports/servo directory

Running it in components/servo isn't guaranteed to work because there's
no Cargo.lock checked in there.  Followup to #14254.
This commit is contained in:
Matt Brubeck 2016-11-18 11:07:38 -08:00
parent 39a221ae5d
commit 02f189060c
2 changed files with 1 additions and 2 deletions

View file

@ -10,7 +10,6 @@ publish = false
name = "servo" name = "servo"
path = "main.rs" path = "main.rs"
test = false test = false
doc = false
bench = false bench = false
[dev-dependencies] [dev-dependencies]

View file

@ -217,7 +217,7 @@ class PostBuildCommands(CommandBase):
copy2(full_name, destination) copy2(full_name, destination)
return call(["cargo", "doc"] + params, return call(["cargo", "doc"] + params,
env=self.build_env(), cwd=path.join('components', 'servo')) env=self.build_env(), cwd=self.servo_crate())
@Command('browse-doc', @Command('browse-doc',
description='Generate documentation and open it in a web browser', description='Generate documentation and open it in a web browser',