Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1370be8 commit 2dacc6cCopy full SHA for 2dacc6c
.circleci/config.yml
@@ -87,7 +87,15 @@ commands:
87
command: |
88
# Set epoch to date of latest tag.
89
export SOURCE_DATE_EPOCH="$(git log -1 --format=%at $(git describe --abbrev=0))"
90
- make html O=-T
+ # Include analytics only when deploying to devdocs.
91
+ if [ "$CIRCLE_PROJECT_USERNAME" != "matplotlib" ] || \
92
+ [ "$CIRCLE_BRANCH" != "master" ] || \
93
+ [[ "$CIRCLE_PULL_REQUEST" == https://github.com/matplotlib/matplotlib/pull/* ]]; then
94
+ export ANALYTICS=False
95
+ else
96
+ export ANALYTICS=True
97
+ fi
98
+ make html O="-T -Ainclude_analytics=$ANALYTICS"
99
rm -r build/html/_sources
100
working_directory: doc
101
- save_cache:
0 commit comments