mirror of
https://github.com/servo/servo.git
synced 2025-06-24 00:54:32 +01:00
Auto merge of #6655 - servo:rustdoc-private, r=Manishearth
Include private items in `./mach doc` and http://doc.servo.org/ See https://github.com/rust-lang/rust/issues/15347 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6655) <!-- Reviewable:end -->
This commit is contained in:
commit
a24783df4b
2 changed files with 7 additions and 1 deletions
4
etc/rustdoc-with-private
Executable file
4
etc/rustdoc-with-private
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
# Skip the strip-private and strip-hidden rustdoc passes
|
||||
# https://github.com/rust-lang/rust/issues/15347
|
||||
rustdoc --no-defaults --passes "collapse-docs unindent-comments" "$@"
|
|
@ -156,8 +156,10 @@ class MachCommands(CommandBase):
|
|||
else:
|
||||
copy2(full_name, destination)
|
||||
|
||||
env = self.build_env()
|
||||
env['RUSTDOC'] = '../../etc/rustdoc-with-private'
|
||||
return subprocess.call(["cargo", "doc"] + params,
|
||||
env=self.build_env(), cwd=self.servo_crate())
|
||||
env=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