From b135ecf0db9bd1ea072879c47ced7f7bc12e5334 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Tue, 21 May 2024 15:19:41 -0700 Subject: [PATCH] Have RTD error if repo is unclean --- .readthedocs.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 66d4b98f..618d642d 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -9,7 +9,8 @@ build: # Avoid `git` treating the directory is dirty due to RTD changes. # ref: https://docs.readthedocs.io/en/stable/build-customization.html#avoid-having-a-dirty-git-index - git update-index --assume-unchanged continuous_integration/environment-doc.yml docs/conf.py - - git status + # If we missed any, error and list the changed files. + - git diff --stat --exit-code sphinx: configuration: docs/conf.py