Skip to content

Commit 735f5e2

Browse files
authored
Have git ignore some RTD changes (#378)
1 parent 0b5523f commit 735f5e2

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.readthedocs.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
version: 2
22

33
build:
4-
os: ubuntu-22.04
4+
os: "ubuntu-22.04"
55
tools:
66
python: "mambaforge-4.10"
7+
jobs:
8+
pre_install:
9+
# Avoid `git` treating the directory is dirty due to RTD changes.
10+
# ref: https://docs.readthedocs.io/en/stable/build-customization.html#avoid-having-a-dirty-git-index
11+
- >-
12+
git update-index --assume-unchanged
13+
continuous_integration/environment-doc.yml
14+
docs/conf.py
15+
# If we missed any, error and list the changed files.
16+
- git diff --stat --exit-code
717

818
sphinx:
919
configuration: docs/conf.py

0 commit comments

Comments
 (0)