辋川集

木末芙蓉花,山中发红萼,涧户寂无人,纷纷开且落

By - 陳 瞽鱦

Github 实现协作更新

今天 Github 的托管应用,有了大幅更新,心中甚慰。

  • 更新页面样式,已基本无Bug;
  • 发现AdminLTE里的documentation组件,和starter.html页面,可用来编写HTML格式的文档;
  • 阮一峰的《ECMAScript 6 入门源文件,可直接在项目的子目录中运行,效果很好;
  • Prism.js是可高度定制的Highlight方案,集成至Markdown教程,优雅;// 参考 Highlight + CodeMirror;
  • GitHub实现了Mac和SFP的协作更新,虽然还是没有搞明白分支,偷懒用了Collaborators;

Gitignore

合作更新需要解决 PHPStorm 的配置文件,要借助 .gitignore:
官方文档:https://help.github.com/articles/ignoring-files/
What are the differences between .gitignore and .gitkeep?
reprint from: http://stackoverflow.com/a/7229996
Git cannot add a completely empty directory. People who want to track empty directories in Git have created the convention of putting files called “.gitkeep” in these directories. The file could be called anything; Git assigns no special significance to this name.
There is a competing convention of adding a “.gitignore” file to the empty directories to get them tracked, but some people see this as confusing since the goal is to keep the empty directories, not ignore them; “.gitignore” is also used to list files that should be ignored by Git when looking for untracked files.

Markdown

Markdown 无法轻易实现新窗口打开:
http://stackoverflow.com/a/4425214

AdminLTE

迁移到这里:
http://www.chenzixin.com/static/admin/
日常写文档,还是用阮老师的模版,兼容性极好

1 thought on “Github 实现协作更新

Christen March 31, 2015 at 8:49 pm

Admin LTE 已经在 iComment 中应用上了,健炜辛苦!

Reply

Leave a Reply

Your email address will not be published.
*
*