-
Notifications
You must be signed in to change notification settings - Fork 86
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
base: gh-pages
Are you sure you want to change the base?
Conversation
74acab7
to
0886c68
Compare
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.
433b72c
to
eefdbfd
Compare
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
- 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
Co-authored-by: Erik Sundell <[email protected]>
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. |
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
…itpuller into gh-pages-non-git
d973cc4
to
4aafa3f
Compare
The link generator creates gitpuller links for non-git
sources including archives from google drive, dropbox
and any publicly accessible web url.