Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: executablebooks/sphinx-book-theme
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: matthew-brett/sphinx-book-theme
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 5 commits
  • 4 files changed
  • 2 contributors

Commits on Apr 28, 2022

  1. Escape colon in JupyterHub link to repo

    I've run into a problem using The Littlest JupyterHub with current
    `sphinx-book-theme`. At the moment the generated URLs for JupyterHub are
    of form:
    
    ```
    <hub-url>/hub/user-redirect/git-pull?repo=https://<repo>&urlpath=tree/<nb_fname>
    ```
    
    These work fine on a modern Kubernetes JupyterHub, I guess because of
    a recent version of JupyterHub responding to the query.
    
    But, on current The Littlest JupyterHub, still on JupyterHub 1.5.0, this
    causes Nbgitpuller to stall if the user is not already logged in, with
    log messages of form:
    
    ```
    Disallowing redirect outside JupyterHub:
    '/hub/user-redirect/git-pull?repo=https://github.com/<repo>&urlpath=tree/<nb_fname>'.
    ```
    
    Once logged in, retrying the same link works correctly.
    
    This can be fixed by escaping the `:` in the Nbgitpuller URL with a
    `%3A`, in this PR.
    matthew-brett committed Apr 28, 2022
    Configuration menu
    Copy the full SHA
    e6896bb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    910bd97 View commit details
    Browse the repository at this point in the history
  3. Adapt tests to URL escape

    Replace : with %3A in test files, to match escaping behavior.
    
    Note: the file `test_topbar_launchbtns.html` does not appear to have
    tests that check the URL.
    matthew-brett committed Apr 28, 2022
    Configuration menu
    Copy the full SHA
    b367eed View commit details
    Browse the repository at this point in the history

Commits on May 2, 2022

  1. Use urlencode from suggestion by MinRK

    Generalize URL encoding using urlencode function.
    matthew-brett committed May 2, 2022
    Configuration menu
    Copy the full SHA
    b859ff9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    823e1a4 View commit details
    Browse the repository at this point in the history
Loading