nodejs / nodejs-zh-CN

node.js 中文化 & 中文社区
https://nodejs.org/zh-cn/
Other
393 stars 99 forks source link

需要一个网站托管文章 #46

Closed dead-horse closed 9 years ago

dead-horse commented 9 years ago

这些在 github 里面阅读不太好吧,而且没有评论系统,是否需要建个静态站点托管在 github 上,或者是找个地方发布?

luin commented 9 years ago

评论系统还是挺重要的, gh-pages + disqus(微博)感觉就差不多。阅读我倒是觉得还好

fengmk2 commented 9 years ago

image

github page?

XadillaX commented 9 years ago

那就 hexo 部署在 gh 上?

dead-horse commented 9 years ago

jekyll 比较方便吧

luin commented 9 years ago

@XadillaX gh-pages 用 Jekyll 就好了

Pana commented 9 years ago

同意, 这样阅读起来会更方便, 受众会大大增加

Pana commented 9 years ago

https://github.com/HubPress/hubpress.io 刚发现这个东东, 大家评估下看

XadillaX commented 9 years ago

@dead-horse jekyll 是 ruby 写的。我们不应该是对 node 更熟悉方便么?

luin commented 9 years ago

@XadillaX GitHub Page 是用 jekyll 驱动的,所以直接 push 到 gh-pages 可以自动生成页面。可以参考:https://help.github.com/articles/using-jekyll-with-pages/

XadillaX commented 9 years ago

@luin 我以前也是 jekyll 党,后来才转 hexo 的。 hexo 支持 CLI 部署到 page 的。

dead-horse commented 9 years ago

jekyll 好了,github 自动部署,我们也不用去 build

luin commented 9 years ago

@XadillaX hexo 挺好用的,但 jekyll 只需要提交 md 文件,比较利于版本控制和协作,hexo 需要手动 build 并生成 html 副本

we11adam commented 9 years ago

Jykell +1

Hexo / Octopress 之类都有可能还要再解决 HTML 的冲突。

XadillaX commented 9 years ago

好吧,我其实只是觉得可能我们更熟悉 node 系的东西。如果大家都觉得 jekyll 更合适的话那还是跟随组织的脚步吧。

stiekel commented 9 years ago

顺带说一句,国内的Gitcafe也有类似于Github pages的服务,而且朝内速度挺快的。 我就托管在Gitcafe pages上。

popomore commented 9 years ago

话说谁对 jekyll 比较熟,负责一下

luin commented 9 years ago

我来搞吧

popomore commented 9 years ago

@luin 赞

luin commented 9 years ago

push 到 gh-pages 分支,可以通过 http://iojs.github.io/iojs-cn/ 访问。内容的许可证现在用的是 Creative Commons Attribution 4.0 International(https://github.com/iojs/iojs-cn/blob/gh-pages/LICENSE.md )。

以后的文章内容直接放到 gp-pages 吧,master 可以放些社区相关的资料。

dead-horse commented 9 years ago

@alsotang 搞个域名指过来吧

popomore commented 9 years ago

@luin 要么把 gh-pages 作为默认分支?

luin commented 9 years ago

@popomore 嗯我觉得可以,master 的内容可以整合进来

popomore commented 9 years ago

移步 #58 这里讨论

luin commented 9 years ago

把这个 issue 转给 @alsotang 来指向域名了

alsotang commented 9 years ago

@luin 我把 ciojs.org 302 跳 http://iojs.github.io/iojs-cn/,可以吗

XadillaX commented 9 years ago

@alsotang 为什么是 302?

luin commented 9 years ago

@alsotang 这么神奇的域名。。CNAME 吧,这样只推一个域名。(话说不应该是 cniojs.org 吗

guo-yu commented 9 years ago

在 gh-pages 分支加一个 CNAME 文件,然后添加一个 CNAME 记录指向到 iojs.github.io

XadillaX commented 9 years ago

@luin 参照 cnodejs.org。

luin commented 9 years ago

@XadillaX 哦这样啊,因为 cn 和 node 有两个连 n 所以看起来正常点哈哈,单独的 c 就不明白了。。

luin commented 9 years ago

@alsotang 建个 ciojs.org 的 A 记录到 192.30.252.153、192.30.252.154,然后建个 www.ciojs.org 的 CNAME 到 iojs.github.io 应该就可以了。我来处理 CNAME 文件

alsotang commented 9 years ago

@luin 我到底应该302还是cname呢?刚才我20点用手机看的时候,ciojs 已经 302 过去了,但是今晚回到家一看,竟然被 dnspod 回退了,真奇怪。可能 cname 的话,会正常一点。dnspod 面对 302 跳转的时候需要审核,但是 cname 就不用。

fengmk2 commented 9 years ago

cname吧,302太挫了

Sent from my iPhone

On Feb 12, 2015, at 1:11 AM, alsotang notifications@github.com wrote:

@luin 我到底应该302还是cname呢?刚才我20点用手机看的时候,ciojs 已经 302 过去了,但是今晚回到家一看,竟然被 dnspod 回退了,真奇怪。可能 cname 的话,会正常一点。dnspod 面对 302 跳转的时候需要审核,但是 cname 就不用。

— Reply to this email directly or view it on GitHub.

luin commented 9 years ago

@alsotang CNAME + A 记录吧,按我上一条回复

alsotang commented 9 years ago

@luin 现在是这样了

image

alsotang commented 9 years ago

@luin 我这里 dns 已经生效了,但是有 url 改变导致的样式问题。 抱歉年前工作太忙暂时抽不开身。 @fengmk2 @dead-horse 某重要分布式 mysql 服务这个月要下线了,所有依赖它的服务都要迁移,跪了。

luin commented 9 years ago

@alsotang cool!

css 需要迁移一下,现在 css 的 url 基于 /iojs-cn 目录,去掉就可以了。不过旧站(https://iojs.github.io/iojs-cn) GitHub 没做自动跳转,所以去掉后旧站的样式就出问题了。我准备用 js 和 meta 跳转一下,大家有什么更好的办法吗?

alsotang commented 9 years ago

我看了看 http://mochajs.github.io/mocha/http://mochajs.org/ ,本来想看看它是怎么跳转的。。结果它没跳转。。

在 2015年2月12日 下午2:26,Zihua Li notifications@github.com写道:

@alsotang https://github.com/alsotang cool!

css 需要迁移一下,现在 css 的 url 基于 /iojs-cn 目录,去掉就可以了。不过旧站( https://iojs.github.io/iojs-cn) GitHub 没做自动跳转,所以去掉后旧站的样式就出问题了。我准备用 js 和 meta 跳转一下,大家有什么更好的办法吗?

— Reply to this email directly or view it on GitHub https://github.com/iojs/iojs-cn/issues/46#issuecomment-74023819.

alsotang commented 9 years ago

http://jashkenas.github.io/coffeescript/ and http://coffeescript.org/ 也没做。

所以如果做的话,用 js 来吧

在 2015年2月12日 下午2:38,alsotang alsotang@gmail.com写道:

我看了看 http://mochajs.github.io/mocha/http://mochajs.org/ ,本来想看看它是怎么跳转的。。结果它没跳转。。

在 2015年2月12日 下午2:26,Zihua Li notifications@github.com写道:

@alsotang https://github.com/alsotang cool!

css 需要迁移一下,现在 css 的 url 基于 /iojs-cn 目录,去掉就可以了。不过旧站( https://iojs.github.io/iojs-cn) GitHub 没做自动跳转,所以去掉后旧站的样式就出问题了。我准备用 js 和 meta 跳转一下,大家有什么更好的办法吗?

— Reply to this email directly or view it on GitHub https://github.com/iojs/iojs-cn/issues/46#issuecomment-74023819.

alsotang commented 9 years ago

而且 coffeescript 的 css 和 js 都是用相对路径的。

在 2015年2月12日 下午2:41,alsotang alsotang@gmail.com写道:

http://jashkenas.github.io/coffeescript/ and http://coffeescript.org/ 也没做。

所以如果做的话,用 js 来吧

在 2015年2月12日 下午2:38,alsotang alsotang@gmail.com写道:

我看了看 http://mochajs.github.io/mocha/http://mochajs.org/

,本来想看看它是怎么跳转的。。结果它没跳转。。

在 2015年2月12日 下午2:26,Zihua Li notifications@github.com写道:

@alsotang https://github.com/alsotang cool!

css 需要迁移一下,现在 css 的 url 基于 /iojs-cn 目录,去掉就可以了。不过旧站( https://iojs.github.io/iojs-cn) GitHub 没做自动跳转,所以去掉后旧站的样式就出问题了。我准备用 js 和 meta 跳转一下,大家有什么更好的办法吗?

— Reply to this email directly or view it on GitHub https://github.com/iojs/iojs-cn/issues/46#issuecomment-74023819.

popomore commented 9 years ago

静态文件用相对路径吧, @luin 你来改?

luin commented 9 years ago

@popomore 他们的页面是单页的,所以可以直接 src="main.js" 这样。如果进入子目录就不行了。我发了个 pr,可以帮我 review 下。 #73

popomore commented 9 years ago

再加一个官网的链接? https://iojs.org/cn/index.html

popomore commented 9 years ago

@luin

luin commented 9 years ago

官网链接么?那就加到导航条吧,把现在的导航从“全部 | 文章 | 周报 | 关于”改成“首页 | io.js 官网”,首页下可以选择具体分类

fengmk2 commented 9 years ago

看来有机会变成 cn.iojs.org https://github.com/iojs/website/issues/184

luin commented 9 years ago

不错哈哈

popomore commented 9 years ago

@turingou 之前就在说这个问题

fengmk2 commented 9 years ago
dig cn.iojs.org

; <<>> DiG 9.8.3-P1 <<>> cn.iojs.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59525
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 4, ADDITIONAL: 0

;; QUESTION SECTION:
;cn.iojs.org.           IN  A

;; ANSWER SECTION:
cn.iojs.org.        300 IN  CNAME   iojs.github.io.
iojs.github.io.     300 IN  CNAME   github.map.fastly.net.
github.map.fastly.net.  254 IN  A   103.245.222.133

我提个 pr