mirror of
https://github.com/servo/servo
synced 2026-05-11 17:37:21 +02:00
21 lines
516 B
Bash
Executable File
21 lines
516 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Helper script to upload docs to doc.servo.org.
|
|
# Requires ghp-import (from pip)
|
|
# GitHub API token must be passed in environment var TOKEN
|
|
|
|
set -o errexit
|
|
set -o nounset
|
|
set -o pipefail
|
|
|
|
cd "$(dirname $0)/../.."
|
|
|
|
./mach doc
|
|
# etc/doc.servo.org/index.html overwrites $(mach rust-root)/doc/index.html
|
|
cp etc/doc.servo.org/* target/doc/
|
|
|
|
python components/style/properties/build.py servo html
|
|
|
|
ghp-import -n target/doc
|
|
git push -qf "https://${TOKEN}@github.com/servo/doc.servo.org.git" gh-pages
|