Skip to content

Commit e7e5186

Browse files
fix: use .deploy-docs-workdir to avoid conflict with repo deploy/ folder
The deploy script used deploy/ as workdir, which conflicts with the repo's deploy/ folder. Git checkout of gh-pages failed with 'untracked working tree files would be overwritten'. Use isolated .deploy-docs-workdir instead. Made-with: Cursor
1 parent e0d6ebe commit e7e5186

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ venv.bak/
104104
# mkdocs documentation
105105
/site
106106
/deploy
107+
.deploy-docs-workdir/
107108

108109
# mypy
109110
.mypy_cache/

scripts/deploy-docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ VERSION_FULL="${1:?Usage: deploy-docs.sh VERSION_FULL}"
99
VERSION_MINOR="${VERSION_FULL%.*}"
1010
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
1111
SITE_DIR="${2:-site}"
12-
DEPLOY_DIR="${3:-deploy}"
12+
DEPLOY_DIR="${3:-.deploy-docs-workdir}"
1313

1414
cd "$REPO_ROOT"
1515
mkdir -p "$DEPLOY_DIR"

0 commit comments

Comments
 (0)