mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fix doc build by resurrecting generation of supported DOM APIs.h
This commit is contained in:
parent
0b0495cff4
commit
80166176a3
2 changed files with 21 additions and 3 deletions
|
@ -72,6 +72,22 @@ add_custom_command(
|
|||
VERBATIM
|
||||
)
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT apis.html
|
||||
COMMAND python -B ${bindings_src}/pythonpath.py -I ${bindings_src}/parser -I ${bindings_src}/ply
|
||||
${bindings_src}/GlobalGen.py
|
||||
--cachedir=_cache
|
||||
--filelist=webidls.list
|
||||
--only-html
|
||||
${bindings_src}/Bindings.conf
|
||||
.
|
||||
${PROJECT_SOURCE_DIR}
|
||||
DEPENDS _cache ${globalgen_deps} ${webidls}
|
||||
VERBATIM
|
||||
)
|
||||
|
||||
add_custom_target(supported-apis DEPENDS apis.html)
|
||||
|
||||
# We need an intermediate custom target for this, due to this misfeature:
|
||||
# > If any dependency is an OUTPUT of another custom command in the same
|
||||
# > directory CMake automatically brings the other custom command into the
|
||||
|
|
|
@ -20,9 +20,11 @@ cp etc/doc.servo.org/* target/doc/
|
|||
|
||||
python components/style/properties/build.py servo html
|
||||
|
||||
OUT_DIR="$(pwd)/target/doc/servo" \
|
||||
make -f makefile.cargo -C components/script dom_docs
|
||||
rm -rf target/doc/servo/.cache
|
||||
cd components/script
|
||||
cmake .
|
||||
cmake --build . --target supported-apis
|
||||
cp apis.html target/doc/servo/
|
||||
cd ../..
|
||||
|
||||
ghp-import -n target/doc
|
||||
git push -qf "https://${TOKEN}@github.com/servo/doc.servo.org.git" gh-pages
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue