Generate CSS properties docs in ./mach doc

This commit is contained in:
Simon Sapin 2018-12-07 19:46:35 +01:00
parent e2c3acf4d5
commit 98c5710135
2 changed files with 4 additions and 2 deletions

View file

@ -19,8 +19,6 @@ cd "$(dirname ${0})/../.."
env CC=gcc-5 CXX=g++-5 ./mach doc
python components/style/properties/build.py servo html regular
cd components/script
cmake .
cmake --build . --target supported-apis

View file

@ -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')