GithubHelp home page GithubHelp logo

Comments (6)

justjavac avatar justjavac commented on May 1, 2024

gh-pages-en 是原始的英文 branch

from json-api-zh_cn.

nightire avatar nightire commented on May 1, 2024

嗯,我知道。

可是这个不是这么玩的,应该用主干分支,然后可以直接在本地运行起来,一边翻译一边就可以看到真实的结果,之后再 build 得到 gh-pages 的结果。

即使只有 gh-pages 也罢,但是 Gemfile 和 Rakefile 在这个 fork 里都没有提交上来,没办法在本地预览和构建。

from json-api-zh_cn.

huang-xiao-jian avatar huang-xiao-jian commented on May 1, 2024

如果只是翻译的话,包缺失并不影响,注明应该就行。

from json-api-zh_cn.

nightire avatar nightire commented on May 1, 2024

@BornKiller 我的意思不是影响与否,而是翻译起来不方便,没有本地服务器支持预览的话,翻译的效果不能实时看到。如果只是纯文本来写作的话,原 repo 也没必要弄个 jekyll 来了。

from json-api-zh_cn.

huang-xiao-jian avatar huang-xiao-jian commented on May 1, 2024

我按照https://help.github.com/articles/using-jekyll-with-pages/ 介绍install jekyll章节处理,现在可以实现本地预览。

from json-api-zh_cn.

nightire avatar nightire commented on May 1, 2024

@BornKiller 看一下 https://github.com/json-api/json-api/tree/1.0

这是 upstream repo 的主干分支,对比一下缺少的文件——你根本就不需要手动搭建本地预览的环境,你所需要的只是 bundle && bundle exec rake preview:browser——这也正是 README 最后所描述的内容。

也就是说:如果这个 repo 应该不只是 forking gh-pages 这个分支,同时也应该把 upstream repo 的 1.0 分支也一起 forking 上来,这样其他的协作者就不需要考虑如何本地预览的问题。

That is how it suppose to be: automation, not manually.

from json-api-zh_cn.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.