Viewer docs for viewing Gists are incomplete.
dasmoth opened this issue · comments
Thomas Down commented
The Gist URL template here seems to be incomplete -- I can't get this to work without adding an extra filename= parameter
Compare:
http://viewer.gorilla-repl.org/view.html?source=gist&id=3bdede1df8232d255e35&filename=biodatoms-demo
with:
http://viewer.gorilla-repl.org/view.html?source=gist&id=3bdede1df8232d255e35
In the latter case, there's also an error in the JS console:
Uncaught TypeError: Cannot read property 'content' of undefined
I'm also wondering if it might be worth defaulting the filename for gists containing only one file.
Jony Hudson commented
Huh, not sure how that happened! Thanks for pointing it out - I'll fix the link when I have a chance. Default filename a good idea - I'll look into it.
Jony Hudson commented
Have updated the docs, and made single-file gists default to the only file, as suggested. Thanks for the report :-)
BTW, that worksheet you posted a link to looks neat :-)