Skip to content

[Doc]: Fix version switcher in devdocs #27876

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dstansby opened this issue Mar 7, 2024 · 2 comments · Fixed by #27886
Closed

[Doc]: Fix version switcher in devdocs #27876

dstansby opened this issue Mar 7, 2024 · 2 comments · Fixed by #27886
Milestone

Comments

@dstansby
Copy link
Member

dstansby commented Mar 7, 2024

Documentation Link

https://matplotlib.org/devdocs/

Problem

In #27658 I updated the version switcher JSON link so it came from the circleCI builds when building on circleCI. It seems like https://matplotlib.org/devdocs/ is now trying to load a version switcher from circleCI too, so we need to:

  1. Work out how to detect if deploying to devdocs
  2. Set the version switcher URL in docs/conf.py correctly if this is the case

Suggested improvement

No response

@QuLogic
Copy link
Member

QuLogic commented Mar 7, 2024

The condition is here:

if [ "$CIRCLE_PROJECT_USERNAME" != "matplotlib" ] || \
[ "$CIRCLE_BRANCH" != "main" ] || \
[[ "$CIRCLE_PULL_REQUEST" == https://github.com/matplotlib/matplotlib/pull/* ]]; then
echo "Not uploading docs for ${CIRCLE_SHA1}"\
"from non-main branch (${CIRCLE_BRANCH})"\
"or pull request (${CIRCLE_PULL_REQUEST})"\
"or non-Matplotlib org (${CIRCLE_PROJECT_USERNAME})."
exit
fi

@dstansby
Copy link
Member Author

dstansby commented Mar 8, 2024

Looks like it worked 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants