FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[Doc]: Fix version switcher in devdocs · Issue #27876 · matplotlib/matplotlib · GitHub

Repository navigation

[Doc]: Fix version switcher in devdocs #27876

Closed

Description

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

Activity

  1. QuLogic commented on Mar 7, 2024

    Member

    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

  2. added this to the v3.9.0 milestone on Mar 7, 2024
  3. dstansby commented on Mar 8, 2024

    MemberAuthor

    Looks like it worked 🎉

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL