mirror of
https://github.com/servo/servo.git
synced 2025-06-29 19:43:39 +01:00
Copy from etc/doc.servo.org in ./mach doc
This commit is contained in:
parent
4ef1db879c
commit
e2c3acf4d5
2 changed files with 8 additions and 7 deletions
|
@ -263,10 +263,15 @@ class PostBuildCommands(CommandBase):
|
|||
else:
|
||||
copy2(full_name, destination)
|
||||
|
||||
return self.call_rustup_run(
|
||||
returncode = self.call_rustup_run(
|
||||
["cargo", "doc", "--manifest-path", self.ports_servo_manifest()] + params,
|
||||
env=self.build_env()
|
||||
)
|
||||
env=self.build_env())
|
||||
if returncode:
|
||||
return returncode
|
||||
|
||||
static = path.join(self.context.topdir, "etc", "doc.servo.org")
|
||||
for name in os.listdir(static):
|
||||
copy2(path.join(static, name), path.join(docs, name))
|
||||
|
||||
@Command('browse-doc',
|
||||
description='Generate documentation and open it in a web browser',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue