aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/post_build_commands.py
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2019-07-29 18:57:20 +0200
committerSimon Sapin <simon.sapin@exyr.org>2019-07-30 08:37:33 +0200
commit0215d09ccbfed85c91605dedbb175dc9a96ba0ab (patch)
tree748fa7b4806ce88d8d1376b95f386812bede0383 /python/servo/post_build_commands.py
parentddb4e369ddb8d9bb20142d34e320370cd3be196f (diff)
downloadservo-0215d09ccbfed85c91605dedbb175dc9a96ba0ab.tar.gz
servo-0215d09ccbfed85c91605dedbb175dc9a96ba0ab.zip
Generate apis.html and css-properties.json for docs as part of crates’ build scripts
… rather than as an extra step after `cargo doc`. This helps always using the correct set of CSS properties (for layout 2013 v.s. 2020).
Diffstat (limited to 'python/servo/post_build_commands.py')
-rw-r--r--python/servo/post_build_commands.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/python/servo/post_build_commands.py b/python/servo/post_build_commands.py
index 2e3a2aff8e2..1855fefff25 100644
--- a/python/servo/post_build_commands.py
+++ b/python/servo/post_build_commands.py
@@ -13,7 +13,6 @@ import json
import os
import os.path as path
import subprocess
-import sys
from shutil import copytree, rmtree, copy2
from mach.decorators import (
@@ -274,18 +273,6 @@ 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")
- if "layout-2020" in features:
- engine = "servo-2020"
- if "layout-2013" in features:
- engine = "servo-2013"
- subprocess.check_call([sys.executable, build, engine, "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')