mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-29 09:52:50 -10:00
We have successfully added docs for geckolib to `doc.servo.org` in #17243 but we still can't use http://doc.servo.org/geckolib to navigate to geckolib docs because of the lack of an index.html file. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors <!-- Either: --> - [X] These changes do not require tests because they are CI changes. Source-Repo: https://github.com/servo/servo Source-Revision: 8085a3717822e70185a7deb50e3250a3a86ab857
40 lines
1.1 KiB
Bash
Executable File
40 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
# 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
|
|
# Use recursive copy here to avoid `cp` returning an error code
|
|
# when it encounters directories.
|
|
cp -r etc/doc.servo.org/* target/doc/
|
|
|
|
./mach cargo-geckolib doc
|
|
# Use recursive copy here to avoid `cp` returning an error code
|
|
# when it encounters directories.
|
|
cp -r target/geckolib/doc/* target/doc/geckolib/
|
|
|
|
python components/style/properties/build.py servo html regular
|
|
|
|
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 \
|
|
>/dev/null 2>&1
|