aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/post_build_commands.py
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-12-07 19:46:35 +0100
committerSimon Sapin <simon.sapin@exyr.org>2018-12-12 08:28:15 +0100
commit98c571013543c99bb3e64406758598f1acb5ace2 (patch)
tree27cb381785551c8aef3412f4d3d0737d70201e05 /python/servo/post_build_commands.py
parente2c3acf4d58c015470caaf3451934c4bc5a5fd8c (diff)
downloadservo-98c571013543c99bb3e64406758598f1acb5ace2.tar.gz
servo-98c571013543c99bb3e64406758598f1acb5ace2.zip
Generate CSS properties docs in ./mach doc
Diffstat (limited to 'python/servo/post_build_commands.py')
-rw-r--r--python/servo/post_build_commands.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/servo/post_build_commands.py b/python/servo/post_build_commands.py
index 9af82449808..8143069ddfb 100644
--- a/python/servo/post_build_commands.py
+++ b/python/servo/post_build_commands.py
@@ -13,6 +13,7 @@ import json
import os
import os.path as path
import subprocess
+import sys
from shutil import copytree, rmtree, copy2
from mach.decorators import (
@@ -273,6 +274,9 @@ class PostBuildCommands(CommandBase):
for name in os.listdir(static):
copy2(path.join(static, name), path.join(docs, name))
+ build = path.join(self.context.topdir, "components", "style", "properties", "build.py")
+ subprocess.check_call([sys.executable, build, "servo", "html"])
+
@Command('browse-doc',
description='Generate documentation and open it in a web browser',
category='post-build')