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
missing mention of a jquery dependency #19
Comments
Oops, you're right; jQuery (or zepto/src/ajax.js) is extremely heavyweight for this library; I've been meaning to replace it with I can remove the |
that sounds great! |
hmm, the unit tests in test/index.html load jQuery 1.8+ using just a Are you using the I was reading through This library was created to "Make Textbooks using only GitHub". I've got a blog post about it at http://philschatz.com/2013/06/03/github-bookeditor/ with links to demos and more recent work is being done by http://kefletcher.blogspot.com (screenshots and such). |
hm, I had forgotten the loader doesn't force sync. good point. Also: yeah, I love the idea of gh-pages for ebook hosting, and bonus points for writing the github handler! |
with forced sync loading octokit.js seems to work, but I get a 422 error when trying to actually remove files in a branch. Initially I kept getting a
yielding
examining the network tab, the full response is
(I kept getting this error on the github.js that you forked from, too... is this a new thing in the API v3 that requires a code update?) |
Thanks for the detailed description! GitHub v3 requires you to pass in the sha of the file you plan to remove. #20 allows an optional sha (so you don't accidentally goof up and remove a file that was changed in the meantime) but defaults to the latest sha. Try it out and I'll probably merge #20 and bump the version tomorrow ; ) |
#20 works a treat! |
hm, getting some |
the readme does not mention needing jquery (hurray!) but then the code complains jquery isn't available (boo!). Loading jquery before octokits still says "jquery not loaded" despite the jQuery variable very much existing in global scope.
The text was updated successfully, but these errors were encountered: