aces / brainbrowser

Web-based visualization tools for neurological data.
https://brainbrowser.cbrain.mcgill.ca/
GNU Affero General Public License v3.0
353 stars 124 forks source link

Add BrainBrowser to CDNJS #92

Open nicholsn opened 10 years ago

nicholsn commented 10 years ago

Would it make sense to make BrainBrowser available through cdnjs?

I saw a few examples of using requirejs to load javascript libraries from cdnjs into an ipython notebook and curious if a similar approach would work for brainbrowser. You can always download a release and configure it locally, but cdnjs looks like it might make the process more straight forward.

tsherif commented 10 years ago

That looks interesting. Can you link to some documentation about how cdnjs is used and how to submit to it? The repo you linked to says they're not taking manual submissions anymore?

nicholsn commented 10 years ago

You're right, looks like they put a temporary hold on manual PRs, but it looks like they'll accept the automated form. The discussion and an example of what will need to be submitted is here: cdnjs/cdnjs#3638

Looks like just a json file that points to your build dir on github for a given tag. Here is an open PR that implemented the automation config: cdnjs/cdnjs#3714

Here is the blog post that introduced me to the idea of using cdnjs w/ipython: http://www.machinalis.com/blog/embedding-interactive-charts-on-an-ipython-nb-pt3/