Closed psychemedia closed 11 years ago
Mm, good point. It might already work given a valid datapackage if you enter the git clone URL (https://gist.github.com/5633865.git), though it might try to do some github-specific things that it shouldn't. Worth a go!
http://git-viewer.labs.theodi.org/repositories/https%3A%2F%2Fgist.github.com%2F5633865.git explodes at the moment, but I think that might be caused by the same bug that means bitbucket doesn't work either. I think I got a bit overzealous with the host autodetection.
It seems that there is a datapackage.json generator that make a stab at generating datapackage.json files. I posted a suggestion that this could be extended to wrap multifile gists: https://github.com/okfn/data.okfn.org/issues/47 thinking that it would then be possible to just paste a gist URL into the data viewer, for example, allow the data viewer to call an API service to autogenerate the datapackage.json, and then use that for display purposes?
Interesting; I know @rgrp was interested in a datapackage generator, didn't know someone had had a crack at it already. Hmmm...
This does indeed work, once I fixed the other bug. See http://git-viewer.labs.theodi.org/repositories/https%3A%2F%2Fgist.github.com%2F5633865.git for the hotness.
Moved the suggestion for autogeneration to #20.
How about previews of multifiles in a gist?
eg accepting a URL in the previewer along the lines of: https://gist.github.com/psychemedia/5633865
(note - the json file hasnlt been validated so this package may be broken!)