Comments (7)
是的,我在本地写文档时是在 /doc 目录下写 *.md 的,不过只是作为我自己的书写环境和存档,不会 push 到 origin。用 Issue 写文档也确实有不妥的地方,但考虑到以下一些原因,我还是这样做了。
- 我是个优柔寡断的人,文档结构或措辞会频繁修改,放在代码库里更新不方便。(虽然除我以外的人看不到修改过程,但这似乎不重要。)
- Issue 是永久链接,而代码库里的 *.md 则未必(文件名或目录结构可能会改)。
- Issue 可评论可交互。这一点真的太重要了!看文档看到不爽,可以立即吐槽,这种便利在我看来是压倒一切的优势。这也是我不用 Wiki 写文档的原因。
- 放在代码库里似乎会方便其它开发者看文档,并帮助修改文档。但我估计大多数对这个项目感兴趣的人只是 bower install 一下拿来用,看文档已是奢求,帮助写文档几乎不可能。如果真的有人愿意帮助完善文档,直接在 Issue 下面评论也比 PR 要便利太多了。
由于这个项目的规模有限,用 Issue 写文档的缺陷还不是那么明显。看到 Seajs 现在还在用 Issue 写文档,我也就安心了。
当然对于有一定规模的项目,我还是会用公开的 repo 来组织文档。比如 CMUI/demo 和 CMUI/doc。
from action.
我很想开发一个工具,把本地的 *.md
文件同步到指定的 Issue 中。不知道有没有现成的方案?
from action.
不知道啊。要实现的话也不是特别复杂,有现成的github api可以读写issue。
from action.
当然对于有一定规模的项目,我还是会用公开的 repo 来组织文档。比如 CMUI/demo 和 CMUI/doc。
具体怎么组织文档我还没想好,估计最后多半还是会采用 Issue 来发布。我现在还没有概念,只能在实践中慢慢摸索和体会了。
from action.
我后来发现两者不矛盾——可以把文档的源文件存在 repo 里,然后只对外公布 issue 形式的文档。
from action.
不过这需要你手动维护啊。
from action.
对,所以我需要写个工具帮我自动同步。
from action.
Related Issues (16)
- Summary
- My Story / 我的故事 HOT 4
- 简介
- 在移动浏览器当中, 使用事件委托,绑定在 body 元素上,有的时候会冒泡不上去 HOT 2
- 动作函数的执行上下文(`this` 指向)是如何处理的? HOT 1
- 需要为 `.add()` 方法增加键名的特殊字符过滤 HOT 1
- 所有点击都要冒泡到 body 元素再处理,性能如何?
- 为什么 `.add()` API 没有采用队列机制? HOT 1
- 所有元素都可以用 Action 来绑定点击事件吗? HOT 1
- 请问 action 是如何处理 300ms 延迟 && 点透问题的呢? HOT 3
- 添加 UMD 包 HOT 1
- 关于 DEBUG_INFO 的疑惑? HOT 2
- 为啥事件触发时回调里不返回event对象呢? HOT 8
- 为什么不弄成通用的呢? HOT 3
- API Documentation / API 文档 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from action.