mirror of
https://github.com/servo/servo.git
synced 2025-06-29 11:33:39 +01:00
Generate CSS properties docs in ./mach doc
This commit is contained in:
parent
e2c3acf4d5
commit
98c5710135
2 changed files with 4 additions and 2 deletions
|
@ -19,8 +19,6 @@ cd "$(dirname ${0})/../.."
|
||||||
|
|
||||||
env CC=gcc-5 CXX=g++-5 ./mach doc
|
env CC=gcc-5 CXX=g++-5 ./mach doc
|
||||||
|
|
||||||
python components/style/properties/build.py servo html regular
|
|
||||||
|
|
||||||
cd components/script
|
cd components/script
|
||||||
cmake .
|
cmake .
|
||||||
cmake --build . --target supported-apis
|
cmake --build . --target supported-apis
|
||||||
|
|
|
@ -13,6 +13,7 @@ import json
|
||||||
import os
|
import os
|
||||||
import os.path as path
|
import os.path as path
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import sys
|
||||||
from shutil import copytree, rmtree, copy2
|
from shutil import copytree, rmtree, copy2
|
||||||
|
|
||||||
from mach.decorators import (
|
from mach.decorators import (
|
||||||
|
@ -273,6 +274,9 @@ class PostBuildCommands(CommandBase):
|
||||||
for name in os.listdir(static):
|
for name in os.listdir(static):
|
||||||
copy2(path.join(static, name), path.join(docs, name))
|
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',
|
@Command('browse-doc',
|
||||||
description='Generate documentation and open it in a web browser',
|
description='Generate documentation and open it in a web browser',
|
||||||
category='post-build')
|
category='post-build')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue