Generate apis.html in ./mach doc

This commit is contained in:
Simon Sapin 2018-12-07 19:49:43 +01:00
parent 98c5710135
commit 00a1e9391c
2 changed files with 5 additions and 8 deletions

View file

@ -277,6 +277,11 @@ class PostBuildCommands(CommandBase):
build = path.join(self.context.topdir, "components", "style", "properties", "build.py")
subprocess.check_call([sys.executable, build, "servo", "html"])
script = path.join(self.context.topdir, "components", "script")
subprocess.check_call(["cmake", "."], cwd=script)
subprocess.check_call(["cmake", "--build", ".", "--target", "supported-apis"], cwd=script)
copy2(path.join(script, "apis.html"), path.join(docs, "servo", "apis.html"))
@Command('browse-doc',
description='Generate documentation and open it in a web browser',
category='post-build')