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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: What are your favorite tools for generating simple documentation?

11 点作者 nagonago超过 2 年前
I need to write some pretty simple documentation, just a general overview of a code base&#x27;s structure, installation requirements, and usage. I&#x27;m leaning toward just putting everything in a README markdown file, but I might want to expand it a bit more eventually, and it would also be nice to have a static HTML file I could hand over to a team which may not have a markdown reader.<p>I&#x27;ve been looking at different documentation generators, and getting a little overwhelmed by all the options. Maybe I just need a markdown-to-html converter? What is your favorite way to write simple documentation?

6 条评论

rk06超过 2 年前
I have used docfx, sphinx (rst) and tried vite press.<p>I picked sphinx at old job because we had very good infra for it. Even though I found it slow (due to it being python based and my company’s idiosyncrasies)<p>For my current job, I picked docfx because other people used them and have set up infra for them. I preferred vite press because editing experience was way better with its HMR. However, I couldn’t change the company infra, so docfx it is.<p>Using vitepress (for writing)and docfx (for publishing) didn’t work due to their subtle differences.<p>My recommendation would be using vitepress, as it makes editing easier and you really want this part to be as much frictionless as possible.<p>And do not go with sphinx as it requires restructuredText. Rst is good, but it introduces a learning curve.
verdverm超过 2 年前
<a href="https:&#x2F;&#x2F;gohugo.io" rel="nofollow">https:&#x2F;&#x2F;gohugo.io</a> which supports writing in multiple common formats (asciidoc, markdown, ...) and generates a static html website. You can of course add javascript or frameworks if you like<p><a href="https:&#x2F;&#x2F;github.com&#x2F;hofstadter-io&#x2F;cuetorials.com">https:&#x2F;&#x2F;github.com&#x2F;hofstadter-io&#x2F;cuetorials.com</a> is one of the sites I maintain using Hugo. It started as the Docsy theme, but needed to be changed due to limitations
nagonago超过 2 年前
Thanks to everyone who commented. I ended up using Material for MkDocs (<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>). Fits all my requirements nicely.
farmin超过 2 年前
Hugo with the Docsy theme.
type0超过 2 年前
Asciidoctor with a couple of shell scripts or a Makefile, ability to tag your code inclusion makes maintaining your docs simple and hassle free even during re-factoring.
diceduckmonk超过 2 年前
ASCIIDoc