scripts/sync_docs_site.sh · chapter Tests and team tooling, file 24 · 54 lines · open in the repository
What it does
Push docs-site/ to the docs repository Mintlify deploys from (decision 0011). Mintlify cannot read github.sfu.ca on its free plan, so the site lives in a small separate repository on github.com that Mintlify watches; every push there redeploys the site. This script copies docs-site/ into a cached clone of that repository and pushes it. The address comes from: git config calendar-effects.docsRemote, which scripts/install_git_hooks.sh sets to the team’s docs repository (github.com/Calendar-Effects/docs) and runs this after each commit. An https address signs in with the GitHub CLI (gh auth login) if it is installed; an ssh
address (git@github.com:…) needs an SSH key registered on github.com.
scripts/sync_docs_site.sh
Without the setting it does nothing, so teammates who do not publish are not affected.
Source
scripts/sync_docs_site.sh