我如何在www.dartlang.org上贡献Dart文档? [英] How can I contribute to the Dart documentation on www.dartlang.org?
本文介绍了我如何在www.dartlang.org上贡献Dart文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我在www.dartlang.org上发现拼写错误时,我该怎么办?
When I find a typo on www.dartlang.org, what should I do? Should I file a bug, fix it somehow, notify someone, or what?
推荐答案
您可以随时以在dartbug.com上提交文档问题。
或者,由于www.dartlang.org是开源的,你可以提供修复。很容易!
Or, since www.dartlang.org is open source, you can contribute the fix. It's easy!
- 在 Google CLA 。
- 前往 https://github.com/dart-lang/dartlang.org/tree/master/src/site 。
- 浏览到您要更改的文件。例如,如果您在 https://www.dartlang.org/polymer-dart/ 中发现错字,则请访问 polymer-dart / index.markdown 。
- 点击编辑按钮,然后编辑文件。
- 点击提交文件更改,撰写好的摘要并发送拉取请求。
- Sign the Google CLA if you haven't already done so.
- Go to https://github.com/dart-lang/dartlang.org/tree/master/src/site.
- Navigate down to the file you want to change. For example, if you find a typo in https://www.dartlang.org/polymer-dart/, then go to polymer-dart/index.markdown.
- Click the Edit button and edit the file. GitHub forks the project for you.
- Click Propose File Change, write a good summary, and send the pull request.
就是这样。
一些备注:
- 接受您的更改后,下次我们更新网站时,它会显示在dartlang.org上。 (这可能需要几天时间。)
- 生成dartlang.org上的几个文件。 创建问题,而不是编辑这些文件。
- 要测试格式更改,您可以克隆并构建dart-lang / dartlang.org项目。
- 如果您有dart-lang / dartlang的本地克隆.org,代替GitHub的审核系统,您可以使用Chromium审核系统和 depot_tools 。第一次,使用
git cl config
将Rietveld服务器设置为 https://chromiumcodereview.appspot .com 。要上传您的更改列表,请使用git cl上传
。要提交更改(如果您是提交者),请使用git cl push
。
- Once your change is accepted, it will appear on dartlang.org the next time we update the site. (This might take a few days.)
- A few files on dartlang.org are generated. Instead of editing these files, create an issue.
- To test formatting changes, you can clone and build the dart-lang/dartlang.org project.
- If you have a local clone of dart-lang/dartlang.org, then instead of GitHub's review system you can use the Chromium review system and depot_tools. The first time, use
git cl config
to set the Rietveld server to https://chromiumcodereview.appspot.com. To upload your change list, usegit cl upload
. To commit your changes (if you're a committer), usegit cl push
.
这篇关于我如何在www.dartlang.org上贡献Dart文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文