mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
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:
commit
73cbe61d56
2 changed files with 1 additions and 2 deletions
|
@ -10,7 +10,6 @@ publish = false
|
|||
name = "servo"
|
||||
path = "main.rs"
|
||||
test = false
|
||||
doc = false
|
||||
bench = false
|
||||
|
||||
[dev-dependencies]
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue