TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: GitBook – Build beautiful programming books using GitHub and Markdown

442 pointsby AaronOabout 11 years ago

33 comments

andrzejkrzywdaabout 11 years ago
As someone who has just recently started writing programming books [1] I&#x27;m really excited to see more such tools!<p>Some thoughts:<p>1. Code examples are the biggest problem to me in the tools that I tried. There&#x27;s many little things about them, that need to look right - line numbers, display on kindle, line breaks<p>2. At the beginning, I&#x27;ve used Git and vim for writing in Markdown. However, at some point I realised that I wasn&#x27;t efficient - I switched to Scrivener [2] and dropped the idea of using Git. In my case, it made me much more productive.<p>3. Writing an ebook is different than writing code. You probably don&#x27;t need much of the history.<p>4. Research is for me the biggest part of writing, experimenting with different ideas, collecting code samples. It&#x27;s good to have a proper tool to support it. In my case, Scrivener [2] was a huge improvement.<p>5. I use a combination of Scrivener, Leanpub, Dropbox and getdpd [3] for the whole project. Scrivener for research and notes organisation, Leanpub for generating the result files (PDF, mobi, epub), Dropbox for syncing those two. Getdpd for the selling part.<p>[1] <a href="http://rails-refactoring.com/" rel="nofollow">http:&#x2F;&#x2F;rails-refactoring.com&#x2F;</a><p>[2] <a href="http://literatureandlatte.com/scrivener.php" rel="nofollow">http:&#x2F;&#x2F;literatureandlatte.com&#x2F;scrivener.php</a><p>[3] <a href="http://getdpd.com/" rel="nofollow">http:&#x2F;&#x2F;getdpd.com&#x2F;</a>
评论 #7527418 未加载
评论 #7530275 未加载
评论 #7533187 未加载
评论 #7530825 未加载
评论 #7529751 未加载
评论 #7532105 未加载
AaronOabout 11 years ago
Here&#x27;s a cool book using GitBook : <a href="http://samypesse.github.io/How-to-Make-a-Computer-Operating-System/" rel="nofollow">http:&#x2F;&#x2F;samypesse.github.io&#x2F;How-to-Make-a-Computer-Operating-...</a><p>It&#x27;s written by GitBook&#x27;s co-author and teaches the basics of writing an OS in C++.
评论 #7529513 未加载
abengoamabout 11 years ago
Looks interesting. A little bit of feedback: - I didn&#x27;t like that the table of contents disappeared on me when I clicked on a page. - Related to this, it would be great for the progress widget to show the actual name of each page&#x2F;chapter, if not all the time, at least when you hover with the mouse. - In the table on contents: mark in some way the links that are going to take you away from the book and into a github view. - The Next button feels too big in pc. Takes away the attention from the content itself. Thank you for your hard work!
评论 #7525286 未加载
评论 #7525159 未加载
arayabout 11 years ago
Quick feedback: When I get to a &quot;next&quot; page, the focus must be on something other than the core content, because spacebar doesn&#x27;t scroll the page. Clicking anywhere in the main content box makes spacebar traversal work :)<p>Looks neat, might be a good candidate for longer-form literature than jekyll pages.
评论 #7527657 未加载
terminusabout 11 years ago
Not to be pedantic or anything, but git != github.<p>AFAICS, none of this is about github. It&#x27;s about git, the protocol, the versioned object store and markdown, the markup layer.
评论 #7529908 未加载
emehrkayabout 11 years ago
Export to epub and replace the textbook industry
评论 #7526703 未加载
评论 #7525274 未加载
评论 #7526197 未加载
jahewsonabout 11 years ago
Yet another web-based ebook viewer which <i>disables zoom</i> on the iPad and then has <i>no way to change the font size</i>. Sigh.
评论 #7528468 未加载
carlsednaouiabout 11 years ago
This is incredible! Here is the repo if anyone wants to star it: <a href="https://github.com/GitbookIO/gitbook" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;GitbookIO&#x2F;gitbook</a><p>I will definitely use this for the CoderDojoNYC curriculum I&#x27;m building.
sspiffabout 11 years ago
The front page and demo&#x27;s seem to be all about interactive on-screen books. Does GitBook also do things like pretty PDF export? (Converting the HTML to PDF does NOT count!)
eslaughtabout 11 years ago
Cool. I built a somewhat-similar tool [1], which doesn&#x27;t handle any of the interactive examples, but generates physical books (PDFs) and ePub, etc. I&#x27;m getting close to publishing my first &quot;real&quot; book with it, which should be cool to see.<p>[1]: <a href="https://bitbucket.org/elliottslaughter/bookmd" rel="nofollow">https:&#x2F;&#x2F;bitbucket.org&#x2F;elliottslaughter&#x2F;bookmd</a>
评论 #7530304 未加载
davidingabout 11 years ago
Just as a heads-up, the font &#x27;appNormal&#x27; looks like this on Windows &#x2F; Chrome 33:<p><a href="http://i.imgur.com/mXfy7NR.jpg" rel="nofollow">http:&#x2F;&#x2F;i.imgur.com&#x2F;mXfy7NR.jpg</a><p>Looks great on OSX etc, so as this is about beautiful books wanted to say. Hope that helps, and good luck with the idea - looks really interesting.
评论 #7526214 未加载
评论 #7527643 未加载
rajuabout 11 years ago
Not as nice as this but there is Github&#x27;s git-scribe that uses AsciiDoc for writing - <a href="https://github.com/schacon/git-scribe" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;schacon&#x2F;git-scribe</a><p>It hasn&#x27;t seen movement lately though.
reizabout 11 years ago
Cool! Good Job. I really like it. Many times the documentation for programming projects look like grab. This project is a big help. Many Thanks1
bryanbraunabout 11 years ago
This kind of stuff is really cool. I&#x27;ve been working on something similar, execept it&#x27;s integrated with Github pages. More info here if anybody&#x27;s interested: <a href="http://www.bryanbraun.com/2014/04/02/publishing-books-to-github-pages-with-bitbooks" rel="nofollow">http:&#x2F;&#x2F;www.bryanbraun.com&#x2F;2014&#x2F;04&#x2F;02&#x2F;publishing-books-to-git...</a>
munafabout 11 years ago
This is really cool. Could be used as an interactive documentation platform for libraries and frameworks as well.
pubbyabout 11 years ago
Looks nice. Here&#x27;s a few suggestions:<p>- The green &quot;finished&quot; bar on the last page should behave as a button. Take me back to the ToC.<p>- The section&#x2F;chapter number should be displayed on every page.<p>- Not a fan of the green progress bar being animated. I think it makes the page loading seem slower than it is.
rhgraysoniiabout 11 years ago
Similar concepts are found with Penflip (<a href="http://www.penflip.com" rel="nofollow">http:&#x2F;&#x2F;www.penflip.com</a>) that go outside programming but offer similar functionality, depending on the breadth of what you may want to write on.
评论 #7536282 未加载
xpop2027about 11 years ago
Interesting to see what @mhartl thinks about this since he recently launched softcover.io
评论 #7527594 未加载
JeremyMorganabout 11 years ago
Very cool. I was just planning on writing something like this for my website, but instead I&#x27;ll devote the time to hacking this up. You may see a few pull requests from me in the coming days!<p>Nice choice on Markdown, and... three days? Nice work.q
评论 #7527070 未加载
tnorthcuttabout 11 years ago
s&#x2F;checkout&#x2F;check\ out<p>&quot;Checkout&quot; is a noun. &quot;Check out&quot; is a verb.
评论 #7529109 未加载
评论 #7526244 未加载
opendaisabout 11 years ago
This is an awesome first implementation of a good idea. :)<p>If I was the type to communicate clearly enough in writing to create an open textbook, I&#x27;d use it.
AbhishekBiswalabout 11 years ago
Can also be used to create documentations. Cool!
yongabout 11 years ago
Yeah! this is something I&#x27;ve always wanted. Now I can convert any github doc to a codecademy like learning experience !
hhandokoabout 11 years ago
What good timing! I had just started on a tutorial project, and was thinking of achieving the same using Jekyll + plugins.
jcdavisonabout 11 years ago
i don&#x27;t frequently get excited about randomy stuff, but when I do, its about stuff like this.<p>- why does your tweet button not mention you guys on twitter ? i&#x27;m like, hey I want to start the &#x27;mention train&#x27;... but i don&#x27;t know who to mention ? you could start by mentioning @railstutor ... just sayin !
Smirnoffabout 11 years ago
I like &quot;Intro to JS&quot; book. Is it open source and available for local usage (download)?
alexchamberlainabout 11 years ago
Looks great. It would be cool if the left and right keys changed the pages.
评论 #7525932 未加载
roozbeh18about 11 years ago
Very nice :D README.md link to gitbook.io refers to github.io :D
评论 #7528482 未加载
justplayabout 11 years ago
This is one of the best thing came out this days.
elwellabout 11 years ago
Font is messed up on Chrome&#x2F;Windows
desduvauchelleabout 11 years ago
Really Cool!
ing33kabout 11 years ago
its good.
teemo_cuteabout 11 years ago
The title says it is intended primarily for programming books. But what if some fiction writers discovered it and got creative? Who knows, the resulting novel might become a work art.
评论 #7529895 未加载