TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Best way for a Markdown based blog and eBook?

35 点作者 apineda12 个月前
I'd like to write an ebook (epub, mobi) and web based book similar to what you see in many places. Anyone have a solid method, or tool recommendations to do this easily and look good? I'm thinking about using Astro for the web version.

18 条评论

paeselhz12 个月前
I&#x27;ve used Quarto[1] to build a personal blog and it has been really easy and straightforward. Especially if you want to run some code alongside the post (like Python, R, or Julia). As far as I know, you can also use it to write books and presentations.<p>[1]: <a href="https:&#x2F;&#x2F;quarto.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;quarto.org&#x2F;</a>
评论 #40393238 未加载
asicsp12 个月前
I use pandoc to convert markdown to pdf+epub (<a href="https:&#x2F;&#x2F;learnbyexample.github.io&#x2F;customizing-pandoc&#x2F;" rel="nofollow">https:&#x2F;&#x2F;learnbyexample.github.io&#x2F;customizing-pandoc&#x2F;</a>). For web version, I use mdbook (<a href="https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;mdBook">https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;mdBook</a>) mainly because it comes with user choosable themes and search by default.<p>However, if I had to start from scratch, I&#x27;d probably look at Quarto (<a href="https:&#x2F;&#x2F;quarto.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;quarto.org&#x2F;</a>) or Mau (<a href="https:&#x2F;&#x2F;project-mau.github.io&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;project-mau.github.io&#x2F;index.html</a>)
nick23812 个月前
If you plan on needing much in the way of cross-references (i.e. like in documentation where you&#x27;re linking to other things all the time), you can use a slightly more advanced markup language like rST (reStructuredText) which is used by Sphinx (though it also supports Markdown). Sphinx docs can be output to a variety of formats, including epub, single-file HTML, PDF via LaTeX, and of course, a multi-page HTML site.
评论 #40393864 未加载
hoofhearted12 个月前
Hey I’ve been working on a little hobby project for easily creating markdown based websites and blogs, using TipTap for the content editor and Git as the storage mechanism.<p>I’d love to hear what you think!<p><a href="https:&#x2F;&#x2F;github.com&#x2F;elegantframework&#x2F;elegant-cli">https:&#x2F;&#x2F;github.com&#x2F;elegantframework&#x2F;elegant-cli</a>
abdullahkhalids12 个月前
Most static site generators will work to create a blog. I use pelican [1], which serves my needs.<p>You will likely need to edit your blogposts a little bit before putting them in the book. So I recommend a separate program for that altogether.<p>[1] <a href="https:&#x2F;&#x2F;getpelican.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;getpelican.com&#x2F;</a>
i_don_t_know12 个月前
If it’s a technical book, you might like <a href="https:&#x2F;&#x2F;jupyterbook.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;jupyterbook.org&#x2F;</a><p>I haven’t used it myself, so I don’t know how easy it is to use. But I like some books that were written in it.
lioeters12 个月前
I&#x27;ve been curious about &quot;Magic Book&quot; for Markdown&#x2F;HTML&#x2F;PDF. (EPUB and MOBI on the roadmap.)<p>&gt; The Magic Book Project is an open source project funded by New York University&#x27;s Interactive Telecommunications Program. It aims to be the best free tool for creating print and digital books from a single source.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;magicbookproject&#x2F;magicbook">https:&#x2F;&#x2F;github.com&#x2F;magicbookproject&#x2F;magicbook</a><p>I learned about it because it&#x27;s used for The Nature of Code 2nd Edition.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;nature-of-code&#x2F;noc-book-2">https:&#x2F;&#x2F;github.com&#x2F;nature-of-code&#x2F;noc-book-2</a>
评论 #40402286 未加载
avikalp12 个月前
We have very recently integrated Strapi into our website (we haven&#x27;t even added a single blog on it yet).<p>I wish I had asked this question here when we were doing our research. There are some great recommendations here. But I like Strapi so far. Their documentation is pretty nice. Even if their onboarding is complicated, the documentation makes it easy to execute.
brycelarkin12 个月前
I just used a Vercel template. Literally took 10 minutes from cloning the repo to getting it set up on my domain.
sixhobbits12 个月前
I have tried a bunch and would love a free OSS option but honestly Leanpub is the best I have found for ebook and printing.<p>For web, I went<p>Mkdocs material (cos I like Python) to Docusaurus (because it has more features) to Astro (because wow at speed and polish).
scriptstar12 个月前
I used 11ty (eleventy) for my static site blog. (Data Is A Dope)[<a href="https:&#x2F;&#x2F;DataIsAdope.com" rel="nofollow">https:&#x2F;&#x2F;DataIsAdope.com</a>]
JoeAltmaier12 个月前
Scrivener is an editor that can compile a book to multiple formats.
cut312 个月前
I&#x27;ve been using a github repo for a book I wanted a digital version of and I love it. I really like github markdown is presented.
AstroJetson12 个月前
Huge fan of markdeep. It’s easy to use has a ton of functionality. It’s been here on HN a few times with lots of positive comments.
billconan12 个月前
I use pandoc for the ebook generation. for the website, I tend to write my own generator.
stillpoint12 个月前
mkdocs-material<p><a href="https:&#x2F;&#x2F;squidfunk.github.io&#x2F;mkdocs-material&#x2F;" rel="nofollow">https:&#x2F;&#x2F;squidfunk.github.io&#x2F;mkdocs-material&#x2F;</a>
mtsolitary12 个月前
Hugo works very nicely.
评论 #40397831 未加载
brudgers12 个月前
A typewriter?<p>I mean writing is the most important part of writing a book.<p>Good luck.