Ask HN: 你上次希望文档是单个文件是什么时候?
1 分•作者: tonyaldon•22 天前
对我来说,就是今天。这不是我第一次有这种感觉了。<p>我确信,大多数项目的开发者文档都应该放在一个单一的文本文件中。<p>每个人都可以在他们喜欢的 IDE 中打开它,找到或替换他们需要的内容。在文档网站上搜索经常会失效。但在我的编辑器里不会,在你的编辑器里也不会。<p>复制粘贴代码片段很容易,无需切换上下文。你可以将文件作为上下文传递给你的首选 AI 助手。无需额外的工具来收集散落在许多文件中的每一个小碎片。<p>它非常简单,我不明白为什么这还没有成为常态。<p>你呢?
查看原文
For me, it was today. Not the first time I've felt this.<p>I'm convinced dev docs for most projects should live in a single text file.<p>Everyone can open it in their preferred IDE and find or replace what they need. Search on docs websites is often broken. But not in my editor, and not in yours either.<p>Copy-pasting snippets is easy, with no context switching. You can pass the file as context to your preferred AI assistant. No need for extra tools to gather every tiny piece scattered across many files.<p>It's so simple that I don't understand why this isn't the norm.<p>What about you?