aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/post_build_commands.py
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-12-07 19:49:43 +0100
committerSimon Sapin <simon.sapin@exyr.org>2018-12-12 08:28:15 +0100
commit00a1e9391cab92fa2c16c3b4e6244e7f52309353 (patch)
treec5507674fc66d3777764f896877159753e757911 /python/servo/post_build_commands.py
parent98c571013543c99bb3e64406758598f1acb5ace2 (diff)
downloadservo-00a1e9391cab92fa2c16c3b4e6244e7f52309353.tar.gz
servo-00a1e9391cab92fa2c16c3b4e6244e7f52309353.zip
Generate apis.html in ./mach doc
Diffstat (limited to 'python/servo/post_build_commands.py')
-rw-r--r--python/servo/post_build_commands.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/servo/post_build_commands.py b/python/servo/post_build_commands.py
index 8143069ddfb..4050f33f932 100644
--- a/python/servo/post_build_commands.py
+++ b/python/servo/post_build_commands.py
@@ -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')