Skip to content
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

Link generator handles non-git sources #195

Open
wants to merge 13 commits into
base: gh-pages
Choose a base branch
from

Conversation

sean-morris
Copy link
Contributor

The link generator creates gitpuller links for non-git
sources including archives from google drive, dropbox
and any publicly accessible web url.

The link generator creates gitpuller links for non-git
sources including archives from google drive, dropbox
and any publicly accessible web URL. In order to handle a non-
git source correctly in nbgitpuller, we added the provider
parameter to the URL string.

Other Changes:
- if git is the source, the branch parameter is always included on the
URL and defaults to 'main' if none is provided. This should then allow
users that have not upgraded their nbgitpuller version to still
work.
- All sources(git and non-git) can handle a path to a particular folder
or notebook. I had taken this ability away from non-git sources in
earlier versions.
We renamed the nbgitpuller-standard-web downloader to
nbgitpuller-generic-web. This commit reflects this change in the
link generator.
This syncs the changes made in nbgitpuller app
link.html Outdated Show resolved Hide resolved
link.html Outdated Show resolved Hide resolved
link.html Outdated Show resolved Hide resolved
link.html Outdated Show resolved Hide resolved
link.html Outdated Show resolved Hide resolved
link.html Outdated Show resolved Hide resolved
link.html Outdated Show resolved Hide resolved
link.html Outdated Show resolved Hide resolved
link.html Outdated Show resolved Hide resolved
link.html Outdated Show resolved Hide resolved
link.html Outdated Show resolved Hide resolved
link.html Outdated Show resolved Hide resolved
- Changed "source" to "content-provider" in both files
- In link.html, added detail to regEx for URL patterns
- removed circleci folder I thought was needed
- In generateBinderUrl, clarified the parameter names to reflect
envRepoX and contentRepoX and fixed the generatation of the URL
- In binder tab, the environment repo now includes the branch if not
specified
- added documentation
- cleaned up the generation of the URLPath
_static/link_gen/link.js Outdated Show resolved Hide resolved
_static/link_gen/link.js Outdated Show resolved Hide resolved
_static/link_gen/link.js Outdated Show resolved Hide resolved
_static/link_gen/link.js Outdated Show resolved Hide resolved
link.html Outdated Show resolved Hide resolved
link.html Outdated Show resolved Hide resolved
_static/link_gen/link.js Outdated Show resolved Hide resolved
@sean-morris
Copy link
Contributor Author

My spacing is off. I will check that out. What is the standard here?

link.html Outdated Show resolved Hide resolved
@consideRatio
Copy link
Member

My spacing is off. I will check that out. What is the standard here?

I think 2 for html files, 4 for python, and 4 for js files. That seems to be the spacing of choice in this repo, it will always be 4 for python files across the JuptyerHub organization, but I'm not sure there is a well defined standard for js/html files, so then I'm just now making sure the code stays consistent within files and between files in the repo.

sean-morris and others added 3 commits November 29, 2021 15:12
Co-authored-by: Erik Sundell <[email protected]>
- removed duplicate data-X on nav bar button
- removed duplicate id on the source repo button and download button
link.html Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants