diff --git a/etc/ci/upload_docs.sh b/etc/ci/upload_docs.sh index 36ee8feecfe..4c49c67b1b5 100755 --- a/etc/ci/upload_docs.sh +++ b/etc/ci/upload_docs.sh @@ -19,14 +19,6 @@ cd "$(dirname ${0})/../.." env CC=gcc-5 CXX=g++-5 ./mach doc -cd components/script -cmake . -cmake --build . --target supported-apis -echo "Copying apis.html." -cp apis.html ../../target/doc/servo/ -echo "Copied apis.html." -cd ../.. - echo "Starting ghp-import." ghp-import -n target/doc echo "Finished ghp-import." diff --git a/python/servo/post_build_commands.py b/python/servo/post_build_commands.py index 8143069ddfb..4050f33f932 100644 --- a/python/servo/post_build_commands.py +++ b/python/servo/post_build_commands.py @@ -277,6 +277,11 @@ class PostBuildCommands(CommandBase): build = path.join(self.context.topdir, "components", "style", "properties", "build.py") subprocess.check_call([sys.executable, build, "servo", "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')