Auto merge of #14281 - mbrubeck:mach-doc-fix, r=Manishearth

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.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14281)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-11-19 15:01:40 -06:00 committed by GitHub
commit 73cbe61d56
2 changed files with 1 additions and 2 deletions

View file

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

View file

@ -217,7 +217,7 @@ class PostBuildCommands(CommandBase):
copy2(full_name, destination)
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',
description='Generate documentation and open it in a web browser',