A browser extension to help you generate nbgitpuller links directly from GitHub.
It adds an icon to the browser toolbar which will be enabled whenever you are on GitHub.
On clicking the button, a form pops up. You can enter a JupyterHub URL and the application you want to use to open this file, folder or repository. Then you can just copy the nbgitpuller URL, and share it with your students!
The JupyterHub URL and application you choose are remembered, so you do not need to enter it over and over again.
The preferred, easy method to install and keep the extension up to date is to install it from the addons.mozilla.org.
The preferred, easy method to install and keep the extension up to date is to install it from the the Chrome Web Store.
- Download the
.zip
version of the latest release of the extension. You want the file namednbgitpuller_link_generator-<version>.zip
. - In your firefox, go to the about:debugging page, and select the 'This Firefox' tab on the left.
- Under Temporary Extensions, click Load Temporary Add-on....
- Navigate to the
.zip
file you downloaded in step 1, and select that - This should enable the addon! If you go to any repo on GitHub, you should see the nbgitpuller button now!
You can find more information here.
- Download the
.zip
version of the latest release of the extension. You want the file namednbgitpuller_link_generator-<version>.zip
. - Extract the
.zip
file you downloaded. - In your Google Chrome / Chromium, go to chrome://extensions.
- Enable the Developer Mode toggle in the top right. This should make a few options visible in a new toolbar.
- Select Load Unpacked, and select the directory into which the downloaded
.zip
file was extracted to. This directory should contain at least amanifest.json
file that was part of the.zip
file.
You can find more information here.
npm install
npx webpack --mode=production
Then build for either browser: (They have slightly different manifest files)
npx web-ext build -s dist-firefox/ -a web-ext-artifacts-firefox --overwrite-dest
npx web-ext build -s dist-chrome/ -a web-ext-artifacts-chrome --overwrite-dest
This produces a .zip
file in each web-ext-artifacts*
folder that you can use.