#!/bin/bash # Copyright (c) Rego-Rs Authors. # Licensed under the Apache 2.0 license. git stash cargo doc --no-deps git checkout docs rm -rf docs cp -r target/x86_64-unknown-linux-musl/doc ./docs echo "" > docs/index.html git add docs git commit -s git push git checkout - git stash pop