mirror of
https://github.com/servo/servo.git
synced 2025-06-29 03:23:41 +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
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue