3 ms·
Print GitHub Repositories as Books
- deleted 1y ago[deleted]
- BSOhealth 1y agoA little of a tangent, but I always thought it’d be cool to have certain libraries printed out in very high quality as posters. Redux was one example in particular—something very concise yet powerful and kind of worth admiring to that extent.
- superpope99 1y agowhy does it need access to my private repositories?
- der_gopher 1y agoYou can select the repositories you give access to, give access to private if you want to print them.
- der_gopher 1y agoI changed the scope to be "public_repo", better to be safe and just work with public repos only for now.
- fetzu 1y agoIs it just my (iOS) device or are the chapters/tables just split randomly across pages?
- politelemon 1y agoThis application will be able to read and write all public and private repository data. This includes the following: Code Issues Pull requests Wikis Settings Webhooks and services Deploy keys Collaboration invites Note: In addition to repository related resources, the repo scope also grants access to manage organization attributes and organization-owned resources including projects, invitations, team memberships and webhooks. This scope also grants the ability to manage projects owned by users.
- mkagenius 1y agoYikes
- behnamoh 1y agoEw, flagged it ASAP.
- der_gopher 1y agoI am the author of it, this is indeed too much, will remove the unnecessary scopes, the software needs to read the contents only.
- der_gopher 1y agoI changed the scopes and removed: email and private repos.
- nikeee 1y agoWhy still require write access to public repos if it's only reading?
- der_gopher 1y agoThis is default behaviour for OAuth apps in github. I will have to migrate to Github Apps for more fine-tuned access.
- Waterluvian 1y agoIf it’s going to simply guillotine content between pages, is there a better way to present it? Can PDFs have arbitrary length pages with better divides? Or one massive page? I guess I’m assuming nobody actually wants to print these and PDF is just a nice format.
- der_gopher 1y agoSomething to improve, I use gotenberg, and it doesn't do it by default, need to somehow cut it nicely.
- sixtyj 1y agoThere are some pdf libraries that can format inputs into pages with margins defined in some config file. But I had to ask Claude to make a script as there are so many parameters… Tcpdf or mpdf for PHP… fpdf or weasyprint for python.
- gus_massa 1y agoI print code from time to time, when I have to modify an existing project I never read before. Perhaps 5 or 10 pages only. I like to make annotations with a pen, or cross irrelevant parts. I usually use an editor to try to make sensible page jumps first, and in an extreme case I used adhesive paper tape to make a looooong page and then help to refactor the code.
- mkagenius 1y agoI was thinking of getting an ink-tank printer to just print codes and read it (brother TCP 820dw) . Especially the codes suggested by qwen/gemini/claude to review it or get ideas before merging it or discarding it or re-prompting it. Sitting at the computer for long does me no good. From the iTerm2, one could go in the menu option shell and hit print (buffer) and it would just create the whole pdf with colors intact.
- 123sereusername 1y ago[dead]
- pointlessone 1y agoLooking at the examples I mourn. I wonder if the author ever saw a real book. No table of contents, no chapters, no page numbers, not even proper margins. There’s so much one can do to lay out code for paper nicely and none of it is here.
- der_gopher 1y agoThanks for the feedback, yes there is a lot to improve.