1 # Read the Docs configuration file
2 # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3 # Project page: https://readthedocs.org/projects/cpython-previews/
8 configuration: Doc/conf.py
16 # https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition
18 # Cancel building pull requests when there aren't changes in the Doc directory.
20 # If there are no changes (git diff exits with 0) we force the command to return with 183.
21 # This is a special exit code on Read the Docs that will cancel the build immediately.
23 if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && [ "$(git diff --quiet origin/main -- Doc/ .readthedocs.yml; echo $?)" -eq 0 ];
25 echo "No changes to Doc/ - exiting the build.";
29 - make -C Doc venv html
31 - mv Doc/build/html _readthedocs/html